Devographics / Monorepo

Monorepo containing the State of JS apps
surveyform-sigma.vercel.app
Other
134 stars 52 forks source link

Misleading Information In The State Management Section #409

Closed ArkadiK94 closed 3 months ago

ArkadiK94 commented 3 months ago

Screenshot_20240727_020042_Firefox.jpg

Hmm, please correct me if I am wrong but how come useState is considered as State Management Library?

Not only that this is not a library but also this hook can't be considered as a state management tool. Yes, you store the local state of components but you do not really manage it.

https://react.dev/reference/react/useState I tried to search in the docs of useState and there is not mentioned even once the word "manage" / "management".

In my opinion, you should remove this option from this list.

SachaG commented 3 months ago

Just for reference, useState is included as a baseline to give a comparison point for actual state management libraries. I do think it's definitely the first way any React developer learns to store state, before employing third-party libraries to do it.

ArkadiK94 commented 3 months ago

@SachaG ok, I understand. In some way, it depends on the way we define "state management" and managing the local state can also be counted so I closed this issue.