DEV Community

L1m1tless
L1m1tless

Posted on

What's Up with React-Redux

This was one of those posts that was going to be a technical, but I did not want to write on something I was not 100 comfy with. React-Redux is one of that library system where you did not know how to search for a book in their system at first but then you find out how to use the system but do not know where or how to physically search for the book in the library!

So other words you have to keep asking the Librarian and other folks who frequent the that library till you can navigate it on your own. This is how I feel my learning process was with this.

The best way I can visualize how Redux works is; you work for a large company with a storage department or "store". It was set up for one special purpose, to hold the updates to other departments info. It is accessible to every department that wants to use it. However, they was get that information in a particular way.

In order the those other departments to update or change the way they operate they have to come through your storage department. I believe the flow kinda goes something like this. other departments (which represents components) need to create an write a request form stating what they want to do or are about todo(an Action) and send it through a dispatch which comes to you, an member of the store department.

You then take the action and see if it meets the criteria that the boss laid out for you. Find that exact response to that action then update that departments operation.

There is a lot more going on but that kind of illustration helps me understand the Redux flow a little bit. The main thing is keep reading up on this stuff and practice examples to get more familiar with this.

Top comments (0)