Installation
To install stan-js run the following command in your terminal:
Create a store
To create a store, you need to import the createStore
function from stan-js
and pass it an object with the initial state.
Create a new store:
Use the returned hook in your React component: