mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
227433ea29d26b45bf92308224ef2e1c15486a15
Adds a test that shows using <StrictMode /> anywhere outside of the root
node will not fire strict effects.
This works:
```js
root.render(
<StrictMode>
<App>
<Children />
</App>
</StrictMode>
);
```
This does not fire strict effects on mount:
```js
root.render(
<App>
<StrictMode>
<Children />
</StrictMode>
</App>
);
```
DiffTrain build for [e1d843f4d8](https://github.com/facebook/react/commit/e1d843f4d8776bbf5d4fbd12a39bcfd2c565f900)
react-fbsource-import
Description
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%