Our great sponsors
-
Recoil
Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.
-
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.
The benefits of using a state management library is that it doesn't need to rerender the entire state tree every time the state changes (this is context's default behavior). Check out the video on the recoil homepage, the creator of recoil explains this concept really well: https://recoiljs.org/
FWIW, the future "context selectors" feature has the potential to improve the rendering performance for context, but it also still doesn't replace the many other things you can do with actual state management libraries.
Kinda hard to use context for global state without this: https://github.com/reactjs/rfcs/pull/119