Hacker News new | ask | show | jobs
by aprdm 3295 days ago
For this specific occasion you could also use the Lift state up pattern -> https://facebook.github.io/react/docs/lifting-state-up.html and it would work just as fine.

I've been doing some React projects for the past 6-7 months and I still haven't had the need to use Redux. I believe you want Redux when your application is really large / complex.

1 comments

Yes but it can get pretty noisy when a component that is deep down needs access to some information.

Redux decouples component structure from information access.

This is useful when you have some little button for example that should look different depending on whether the user is logged in or not.

Without redux you will burden each and every component in the hierarchy to manage that state up and down.

With redux that button can hook itself into the state and be dropped anywhere without burdening its parents for any state management.