rsup-simple-data-store
v1.0.2
Published
A rsup-simple-data-store to manage your data
Downloads
2
Readme
rsup-simple-data-store
A rsup-simple-data-store to manage your data
installation
npm i rsup-simple-data-store
or
<script src="https://unpkg.com/[email protected]/dist/simple-store.js"></script>
Useage
const store = new Store({
list: [],
isLoading: false,
// ...
});
store.on("list", () => {
//...something to do after your data changed
});
store.set({
list: [//...new list],
});