Skip to content

Commit

Permalink
Update createStore URL in README.md (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranjal0819 authored Feb 19, 2020
1 parent 94f7e53 commit c220fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
## 1. With Redux
### 1.1 Basic store

For a basic [Redux store](http://redux.js.org/docs/api/createStore.html) simply add:
For a basic [Redux store](https://redux.js.org/api/createstore#createstorereducer-preloadedstate-enhancer) simply add:
```diff
const store = createStore(
reducer, /* preloadedState, */
+ window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
```

Note that [`preloadedState`](http://redux.js.org/docs/api/createStore.html) argument is optional in Redux's [`createStore`](http://redux.js.org/docs/api/createStore.html).
Note that [`preloadedState`](https://redux.js.org/api/createstore#createstorereducer-preloadedstate-enhancer) argument is optional in Redux's [`createStore`](https://redux.js.org/api/createstore#createstorereducer-preloadedstate-enhancer).

> For universal ("isomorphic") apps, prefix it with `typeof window !== 'undefined' &&`.
```js
Expand Down

1 comment on commit c220fd1

@hugoclaude
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this broke my code. It says reducer is not defined. what do I do to fix it?

Please sign in to comment.