Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
harryhope authored Apr 19, 2020
1 parent 3629c0d commit 0514e60
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ You can update any slice of the global state this way by providing a path as the

## API

#### `createHookedOnReducer(initialState, namespace, handlers)`
### createHookedOnReducer
```js
createHookedOnReducer(initialState, namespace, handlers)
```

Creates a redux reducer meant to be used with [`createStore`](https://redux.js.org/api/createstore#createstorereducer-preloadedstate-enhancer).

**Arguments**
Expand All @@ -114,7 +118,10 @@ export default createHookedOnReducer(initialState, 'MY_NAMESPACE', {

---

#### `useHookedOnState(selector, defaultState, namespace)`
### useHookedOnState
```js
useHookedOnState(selector, defaultState, namespace)
```

**Arguments**

Expand Down

0 comments on commit 0514e60

Please sign in to comment.