Hacker News new | ask | show | jobs
by LAMike 3366 days ago
I'm re-learning Redux now, does anyone else think that it might be overkill for an app that doesn't require any user input?
5 comments

Quite possibly, and it's always a good exercise (and in this case justifiable) to do it the 'vanilla way'.

That said, even for relatively simple, non-input type projects I've found that Redux is worth it. I got thoroughly sick of passing props down multiple levels.

Furthermore, I found that I often ended up making mistakes where my components were too reliant on their context (even when considering variable/prop naming). Redux, I feel, extends the 'pit of success' effect that React has; when I use it I'm more likely to properly isolate components.

My suggestion is to not use until you need it, at which point it's easy to add. I find that most apps that I write benefit from it, but there's no point in using it if your use case doesn't need it.
Yes. Redux's advantages are only relevant if you have a lot of changing/updating data, which usually comes from user input. My personal litmus test is if the Redux devtools (https://github.com/gaearon/redux-devtools) sound like a must-have feature.
We're building a project management tool over at Braid [0] and it made a lot of sense for us. It saved us a lot of nasty prop-passing business.

What does your app do?

[0] - http://braidhq.com/

If all your data is read-only, then yes, Redux is probably overkill. You'd be fine just passing the data down as props from a higher-level component.