Hooks and Redux Saga

Posted by Prem Tiwari | Updated on

You can use useReducer hook instead of redux if you want. But if you have a shared state between different components that are deep nested in different branches of DOM tree, implementation with useReducer could be a little bit complicated. So using redux and saga does not contradict with hooks. Hooks just needed if prefer functional components over class components.

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