Single reactive primitive for performant state management in React
State management is most performant when you use a mutable reactive primitive external to components and the reconciler. Bonsify provides a single reactive primitive of reactive
. Combine this with the patterns introduced in the following sections, and you can scale your application to any size without performance issues.
- Constructor
- Protected State
- State Tree
- Component State Contract
- Explicit States
- Data Fetching
- Promises
- Environment Dependencies
- Multiple UX
npm install bonsify
Automatic observation in components using observing-components.
import babelPlugin from "bonsify/babel-plugin";
import swcPlugin from "bonsify/swc-plugin";