Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Apr 15, 2019
1 parent 55eb4d4 commit b515f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const [useStore] = create((set, get) => ({
dispatch: args => set(state => reducer(state, args)),
})

const dispatch useStore(state => state.dispatch)
const dispatch = useStore(state => state.dispatch)
dispatch({ type: types.increase })
```
Expand Down

0 comments on commit b515f92

Please sign in to comment.