Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chaceburnette authored Aug 18, 2021
1 parent b2a8953 commit 20a3b59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osmosis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ The `setupStore` function takes in an argument that is just a custom hook. The c
let store = setupStore(useStateStore);
```

- store - a ref to the store object returned from the supplied custom hook
- store.Context - a React context variable that gives you access to the state and functions of your store
- store.Provider - a higher-order component used to provide the store to the app
- `store` - a ref to the store object returned from the supplied custom hook
- `store.Context` - a React context variable that gives you access to the state and functions of your store
- `store.Provider` - a higher-order component used to provide the store to the app

To connect the state throughout your app you have to import the `StoreProvider` function which is simply a utility for combining several `wrapperFunction`'s into a single higher order component.

Expand Down

0 comments on commit 20a3b59

Please sign in to comment.