Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
That's not the point. Or you heard this from co-worker? If so, their research is insufficient.
-
BimaAdi943yDon't worry @vintprox . We already move some of global state to redux. But back then when we didn't know about redux, we used localstorage as global state and it was horrible. Last friday we found some state still in the localstorage and my co worker start joking "Why don't we use localstorage as global state like back then hahaha".
-
bvego63yWhile redux may seem complex at first, it really aint that complicated once you get used to it
It really is about 3 things:
- global state (store)
- dispatching actions that change the state
- subscribing to certain parts of the state
People do have the tendency to complicate things, but redux itself isnt that hard to grasp
You may want to look into redux toolkit to reduce the boilerplate a bit
Please dont store stuff to local storage, it will complicate the life for both you and people who come to work on the project after you 😬 -
@TopsyKretts I think Redux makes sense for writing stateful applications, but hooks seem quite extensible and TDD-friendly.
Related Rants
redux? why use redux? while you can put all global state in localstorage. (hmmm... -_-)
rant
redux
reactjs