Update readme.md

This commit is contained in:
Paul Henschel 2019-04-09 11:17:47 +02:00 committed by GitHub
parent 46bfc167ee
commit 45ed3ac3ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,8 @@ React state is in a bit of a mess. Hundreds of solutions out there, the establis
#### Create a store (or multiple, up to you...)
```jsx
import create from 'msga'
// Name your store anything you like, but remember, it's a hook!
const useStore = create(set => ({
// Everything in here is your state