From my experience of learning redux , I am sharing a guideline for newly redux learners. I hope my guideline will help you to gain redux knowledge without suffering any confusion.
The first thing that you must have to know before starting a journey with redux is what is redux actually?. Basically redux is a state management JavaScript library. It helps us to manage state in a predictable way and its state works globally. You can get and update the state anywhere from your website. And then if you are a React developer like me. You will face a confusing situation with redux JS , react-redux and redux-toolkit . This confusion will eat a large amount of your time and you will be late to start your redux learning journey. so my opinion is just close your eyes to learn and explore the redux JS first because it’s the main redux logic and then if you want to use redux in your react app , you have to explore react-redux library and then when you are feeling comfort in redux , you can learn redux-toolkit. Redux toolkit is not an external anything from redux. Redux-toolkit is for managing redux logic in an easier way. There you will find another name that is rtk-query its like react-query library. it will help you to do query in your application.
Then after gaining the knowledge about redux logic and how to implement that you must have to practice. For react developers, react-hook is good enough for managing state and context-API is also good for using the state globally but in a large application it’s better to manage your state in a different and predictable way. So in a large application redux gives us a power to manage our state. And my advice is go to YouTube and find a large application with redux implementation and practice it. You have already gained the redux knowledge and after practicing this you will feel comfortable to use redux in large applications.
Top comments (0)