diff --git a/content/docs/hooks-reference.md b/content/docs/hooks-reference.md index 7a3a0dde8..dac51b17a 100644 --- a/content/docs/hooks-reference.md +++ b/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}; }