Browse Source

Fix line numbers

main
Dan Abramov 6 years ago
committed by GitHub
parent
commit
e3cf542e75
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/hooks-reference.md

2
content/docs/hooks-reference.md

@ -232,7 +232,7 @@ You can also create the initial state lazily. To do this, you can pass an `init`
It lets you extract the logic for calculating the initial state outside the reducer. This is also handy for resetting the state later in response to an action:
```js{1-3,11-12,21,26}
```js{1-3,11-12,19,24}
function init(initialCount) {
return {count: initialCount};
}

Loading…
Cancel
Save