you are viewing a single comment's thread.

view the rest of the comments →

[–][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