Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pvcresin authored Mar 13, 2021
1 parent 9b8c9aa commit 4ec0e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/example-reducer.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ title: Example Reducer
Here is a simple example of the difference that Immer could make in practice.

```javascript
// Reducer with inital state
// Reducer with initial state
const INITIAL_STATE = {};
// Shortened, based on: https://github.com/reactjs/redux/blob/master/examples/shopping-cart/src/reducers/products.js
const byId = (state = INITIAL_STATE, action) => {
Expand All @@ -43,7 +43,7 @@ After using Immer, our reducer can be expressed as:
```javascript
import produce from "immer"

// Reducer with inital state
// Reducer with initial state
const INITIAL_STATE = {};

const byId = produce((draft, action) => {
Expand Down

0 comments on commit 4ec0e7e

Please sign in to comment.