React State Manager
- reactive
- no extra re-render
- 100 line
import { createStore, useStore } from 'react-store';
const data = createStore({ count: 0 });
function App() {
return (
<span>
count:{data.count}
<button onClick={() => data.count++}>++</button>
</span>
);
}
MIT © xiaoming