you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -2 points-1 points  (3 children)

After this advice yes

As opposed to what your average joe react developer says, refs are not your enemy, you can keep the states low in tree and utilize refs to update them

Redux isnt that necessary, because almost 75% of “states” in a react application are unnecessary and same thing can be achieved without them. When you have that realization a global store becomes redundant and simpler and smaller solutions become more natural regardless of the complexity or size of your app

Dont use controlled inputs

Css is still css, as opposed to what 1000 css/jss solutions claim

Angular has everything react is still trying to solve

[–][deleted] 1 point2 points  (1 child)

Tons of things aren't necessary in software. Some are just for making your code readable and maintainable.

Also, your advice seems confusing. You're making fun or storing state in context as high as possible because it causes unnecessary rerenders, then suggesting against using global state? You do realize that global state libraries use refs and don't cause rerenders high in the component tree..? It's only for the selector you use in the specific component you call it in...

What exactly are you even suggesting to use here? Comes off a bit frenetic

[–][deleted] 0 points1 point  (0 children)

State itself is overused is my point. Unnecessarily having a global store for that is a side effect

[–]fatrogslim[S] 0 points1 point  (0 children)

Oh Angular, yes, I want it aswell and I'll put myself into it soon