You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot",
"Warning: ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot",
"Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot",
// Intentionally do not return anything to avoid unnecessarily complicating the API.
181
116
// folks can use all the same utilities we return in the first place that are bound to the container
@@ -201,10 +136,9 @@ function render(
201
136
{
202
137
container,
203
138
baseElement =container,
204
-
legacyRoot =false,
205
139
queries,
206
140
hydrate =false,
207
-
wrapper,
141
+
wrapper: WrapperComponent,
208
142
}={},
209
143
){
210
144
if(!baseElement){
@@ -219,8 +153,16 @@ function render(
219
153
letroot
220
154
// eslint-disable-next-line no-negated-condition -- we want to map the evolution of this over time. The root is created first. Only later is it re-used so we don't want to read the case that happens later first.
0 commit comments