Introduction
Backset
is easy to use React state management tool.
- Very few APIs.
- Based on React Hooks and Context.
- Tracking and eliminate unnecessary re-renders.
- No redundant template code.
- Nothing to learn.
What is it?
Backset is not a traditional one-way data flow library, it's an elegant solution to programming with React Hooks,
it allows you to update datas as freely as you would with useState
.
Backset will save you from redundant template code and enjoy the happiness of programming with React.
Previews
With the help of backset
, we can share and operate data in multiple components,
you don't have any mental burden.
All data is stored in React Context, no magic, no hack.
const { useStores, useUpdates } = Backset.create({ val: 'hello_world' })
const MyButton = () => {
const { val } = useStores()
const updates = useUpdates()
return <button onClick={() => updates.val('next')}>{val}</button>
}
Use now
You can see more detailed guideline here, but you can also refer to the following examples to try it now: