A simple state management library in react app. State sharing and persist never been so easy :)
MIT License
Published by suhaotian about 4 years ago
.replaceState
method and warn .setState
.forceUpdate
method.getUpdateCount
method, we can know how many times update in our state nowPublished by suhaotian about 4 years ago
createOne
Published by suhaotian about 4 years ago
Published by suhaotian about 4 years ago
Change:
createOne<[GenericType]>
, inspired by React's useState
Published by suhaotian about 4 years ago
Published by suhaotian about 4 years ago
jsdeliver
<script src="https://unpkg.com/[email protected]/umd/eventemitter3.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/useone.umd.production.min.js"></script>
Browser Namespace: UseOne.createOne
Published by suhaotian about 4 years ago
Enjoy :)