This commit is contained in:
Dan Abramov
2020-03-30 16:05:35 +01:00
committed by GitHub
parent 9e5a358cb2
commit fae6d6b2eb

View File

@@ -99,7 +99,7 @@ Because the above methods might be called more than once, it's important that th
Strict mode can't automatically detect side effects for you, but it can help you spot them by making them a little more deterministic. This is done by intentionally double-invoking the following functions:
* Class component `constructor`, `render`, and `shouldComponent` methods
* Class component `constructor`, `render`, and `shouldComponentUpdate` methods
* Class component static `getDerivedStateFromProps` method
* Function component bodies
* State updater functions (the first argument to `setState`)