How to dispatch an action on page load in react-redux?

Posted by Jennifer | Updated on

Want to dispatch an action on page load in react-redux? You call it from the componentDidMount() of the react component for your page, or wherever it makes sense. So in that component file:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers