Introduction
GlassX is a simple context based state management library for React and React Native. It provides simple hooks and classes to get you started right away. No need for initializing a context or any such thing. Just start writing and reading your state.
It is based on Reactn by Charles Stover but is more tailored towards speed building from the ground up and polished with modern react. It has a ton of handy features with a minimal learning curve which makes it perfect for everyone.
Features
No boilerplate
Right after installation, you can call GlassX.set
to add items to your global state or use the useStore
hook. No setup, no initializations.
Based on react context
GlassX is based on context which makes it super fast and allows it to sit right in your app like a part of the react code itself.
TypeScript support
GlassX is 100% written in TypeScript which gives it amazing support with most editors and allows you to create and extend types on top of it. You no longer need to stick to state management tools with sub-par type support.
Supports advanced features
Unlike many other state management libraries out there, GlassX supports features like async reducers, hooks, plugins and modules which allow you to scope your state and reducers to particular portions of your app.