Installation
Scripts
https://unpkg.com/slim-store Unpkg.com provides NPM-based CDN links. The above link will always point to the latest version published on NPM. You can also specify a specific version in the same way as https://unpkg.com/slim-store.
<script src="https://unpkg.com/slim-store@latest/slim.min.js"></script>
NPM
npm install slim
Yarn
yarn add slim
Use in application
import Slim from 'slim-store'
const state = {...}
const reducers = {...}
const store = Slim.createStore({
reducers,
state
})
Build with source
If you need to build code that uses your own specific situation, you can clone the repository and build it yourself. The generated target code will be stored in the /dist
directory.
git clone https://github.com/victor0210/slim.git
cd slim
npm install
npm run build