Re:React Common Tools and Practices: State Management Overview
by ericwood on Monday March 08, 2021 @11:00AM
(#26387082)
This is more commentary on the "the best React state management setup for you is..." comment above than the site itself. I fundamentally take issue with there being a "best" solution for state management, especially targeted at people starting out. The various libraries can do great things for different apps, but the answers as to what works best for a given situation tend to be nuanced.
[ Parent
| on HN ]
Re:React Common Tools and Practices: State Management Overview
by Chris_Newton on Monday March 08, 2021 @12:11PM
(#26388257)
There can’t be a universal best solution to state management. Sometimes your requirements are so simple that using a library is overkill and basic JS is fine. Sometimes your requirements are so complicated that well-known libraries like Redux and MobX aren’t enough, and if you’re going to implement something more comprehensive anyway then the extra dependency might not be helpful. In between, there is a scale where different strategies might work best. A site that helps less experienced developers to figure out where their needs fall on the spectrum and which strategies might work well for them seems like a helpful idea.
Re:React Common Tools and Practices: State Management Overview
by ericwood on Monday March 08, 2021 @12:27PM
(#26388527)
I agree, once again my original comment is in response to a comment on here that I'm replying to and not the linked article. I myself would find a lot of utility in a site that compares all the different approaches.
Re:React Common Tools and Practices: State Management Overview
by Chris_Newton on Monday March 08, 2021 @02:45PM
(#26390566)
I was commenting in support of your position. Sorry if that wasn’t clear!
Re:React Common Tools and Practices: State Management Overview
by IceHegel on Wednesday March 10, 2021 @10:45AM
(#26412411)
I take the point that "best" isn't completely objective, but it's also important for people with experience to help those learning the ecosystem. The state management players differ in philosophy and quality. I’m not sure Redux is abstractly the best state management pattern, but practically it’s a very high quality library with native-app quality tooling.