Our great sponsors
-
Look into ReactN which uses hooks, has lower overhead, no boilerplate, and is much easier to use and learn than Redux.
-
Zustand is a lightweight state management tool that I would use over context for small apps with little server state.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
hookstate
The simple but very powerful and incredibly fast state management for React that is based on hooks
I've never understood why Hookstate (https://hookstate.js.org/) doesn't get more love. It's super-simple (no boilerplate), modern (hook-based), performant (works great for all size apps) and even works outside of components beautifully. It's somewhat similar to context, but more robust and feature-rich (because it's a true state management solution, which context really isn't meant to be). It's basically the only way I've done state in React for a couple of years now and I wouldn't trade it for the world.
-
I recommend accessing your state via a hook..
-
I've been using context + useReducer and over time I ended up developing this little lib: https://github.com/gluecodes/storecle Not sayin, it's ideal but maybe you'll find it useful as I do.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.