How to access state inside Redux reducer?

Posted by Prem Tiwari | Updated on

If you want to access state inside Redux reducer? I would use thunk for this, here’s an example:

Basically you get all the data you need on the action, then you can send that data to your reducer.


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