Hacker News new | ask | show | jobs
by davidmurdoch 3230 days ago
React+Redux is still very focused on separation of concerns, but now it's all in the JavaScript side: "where is the JS for this JS?" is the question now. Components, states, props, actions, reducers, stores, etc. React has just as many "separation of concerns" as ever.
1 comments

I don't disagree. I don't think React+Redux is perfect or fixed every possible problem.

A lot of those things are in a way a fundamental side effect of lenient languages and dynamism.

Having said I think it's definitely nowhere near as bad.

I use Typescript and modern JS and types and the modules/import system does a lot to prevent those things.

Because in general I don't have any globals lurking around so for example the styling of a component is imported at the top in the same file so it's always nearby. So the symbols and variables that you see on the screen are more obvious in terms of where they come from.

Redux also while not perfect if you have a reasonable amount of discipline it doesn't get as bad as the old-school stuff.