Kid
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
beta/src/pages/apis/react/useState.md
|
|
@ -1232,7 +1232,7 @@ If you can't find the cause of this error, click on the arrow next to the error |
|
|
|
|
|
|
|
### My initializer or updater function runs twice {/*my-initializer-or-updater-function-runs-twice*/} |
|
|
|
|
|
|
|
In [Strict Mode](/apis/react/strictmode), React will call some of your functions twice instead of once: |
|
|
|
In [Strict Mode](/apis/react/StrictMode), React will call some of your functions twice instead of once: |
|
|
|
|
|
|
|
```js {2,5-6,11-12} |
|
|
|
function TodoList() { |
|
|
|