File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 11import * as React from 'react' ;
2- import * as ReactDOM from 'react-dom' ;
32import * as ReactDOMClient from 'react-dom/client' ;
43import { BrowserRouter as Router , Routes , Route , Link } from 'react-router' ;
54import * as DomTestingLibrary from '@testing-library/dom' ;
@@ -104,13 +103,8 @@ function App() {
104103
105104const container = document . getElementById ( 'react-root' ) ;
106105const children = < App /> ;
107- if ( typeof ReactDOM . unstable_createRoot === 'function' ) {
108- const root = ReactDOM . unstable_createRoot ( container ) ;
109- root . render ( children ) ;
110- } else {
111- const root = ReactDOMClient . createRoot ( container ) ;
112- root . render ( children ) ;
113- }
106+ const root = ReactDOMClient . createRoot ( container ) ;
107+ root . render ( children ) ;
114108
115109window . DomTestingLibrary = DomTestingLibrary ;
116110window . elementToString = function elementToString ( element ) {
You can’t perform that action at this time.
0 commit comments