I am using React-Redux to build an application.
To load initial data for a React smart component, I need to dispatch a Redux action where the server data requests will happen.
I've tried dispatching the action in constructor (ES6 implementation), componentWillMount
, and componenetDidMount
. They all worked.
My question is:
is there a recommended place in the React smart component that the action should be dispatched.