mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
Fix line numbers
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user