-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How is it different from useState + useContext? #8
Comments
Hi, sure there are some advantages but you should consider each project's needs on a case by case basis. Some of the key advantages of using this over
There's no silver bullet for state management. A custom solution might seem like less work at first but has noticeable performance issues and may not be suitable for large or complex apps for a few reasons. Similarly, using Redux may also seem unnecessary on smaller projects and if you don't need to leverage the advanced features or large ecosystem it's likely you don't need Redux at all. There's lots of libraries out there to choose from, I'd recommend checking a few out to see what best fits your needs. When deciding between a custom solution, this library or Redux a general rule of thumb I like to follow is:
|
Thanks for your comprehensive anwser. I'll definitely give this a try! |
Hi!
I have got a question. Your library looks really like redux, but similar effect can be achieved by using
useState
anduseContext
hooks. Are there some benefits that one can get from using your solution 😃 ?The text was updated successfully, but these errors were encountered: