How to access store in second component in react-redux?

Posted by Jessica Taylor | Updated on

Want to access store in second component in react-redux? When you are using Provider any component that is children of the Provider Higher Order Component can access the store properties though the use of connect function.

However if this other component is a direct child of App component then you can also pass the score prop as a prop to this component from App like


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