Answer the question
In order to leave comments, you need to log in
How to pass state from Redux Store to ReactDOM.render?
Hello!
Please tell me the best way to pass props to the Load component after receiving the state from the Redux Store. In this case, the isLoading state, which can be either true or false.
The code looks like this:
ReactDOM.render(
<Provider store={store}>
<ConnectedRouter history={history}>
<MainLayout>
<Load loading={Сюда передаем props true или false}/>
<Route exact path="/" component={Home}/>
</MainLayout>
</ConnectedRouter>
</Provider>,
document.getElementById('root')
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question