File tree 1 file changed +10
-0
lines changed
docs/react-testing-library
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ as these methods:
11
11
- [ ` container ` ] ( #container )
12
12
- [ ` baseElement ` ] ( #baseelement )
13
13
- [ ` hydrate ` ] ( #hydrate )
14
+ - [ ` legacyRoot ` ] ( #legacyroot )
14
15
- [ ` wrapper ` ] ( #wrapper )
15
16
- [ ` queries ` ] ( #queries )
16
17
- [ ` render ` Result] ( #render-result )
@@ -94,6 +95,15 @@ If hydrate is set to true, then it will render with
94
95
useful if you are using server - side rendering and use ReactDOM .hydrate to mount
95
96
your components .
96
97
98
+ ### ` legacyRoot `
99
+
100
+ By default we ' ll render with support for concurrent features (i.e.
101
+ [` ReactDOMClient.createRoot ` ](https :// reactjs.org/docs/react-dom-client.html#createroot)).
102
+ However , if you ' re dealing with a legacy app that requires rendering like in
103
+ React 17 (i .e .
104
+ [` ReactDOM.render ` ](https :// reactjs.org/docs/react-dom.html#render)) then you
105
+ should enable this option by setting ` legacyRoot: true ` .
106
+
97
107
### ` wrapper `
98
108
99
109
Pass a React Component as the ` wrapper ` option to have it rendered around the
You can’t perform that action at this time.
0 commit comments