Skip to content

Commit cbc62d2

Browse files
committed
docs(readme): fix error export
1 parent ce1fee9 commit cbc62d2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ import Shared from '../model/shared'
167167

168168
const stores = { Home, Shared }
169169

170-
export default Model(stores)
171-
// the same as export const { getInitialState, useStore, getState, getActions, subscribe, unsubscribe } =
170+
export const { getInitialState, useStore, getState, getActions, subscribe, unsubscribe } = Model(stores)
172171
```
173172

174173
[⇧ back to top](#table-of-contents)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-model",
3-
"version": "2.6.0-alpha.0",
3+
"version": "2.6.0",
44
"description": "The State management library for React",
55
"main": "./dist/react-model.js",
66
"umd:main": "./dist/react-model.umd.js",

0 commit comments

Comments
 (0)