File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default class TodoTextInput extends Component {
42
42
} ) }
43
43
type = "text"
44
44
placeholder = { this . props . placeholder }
45
- autoFocus = " true"
45
+ autoFocus = { true }
46
46
value = { this . state . text }
47
47
onBlur = { this . handleBlur }
48
48
onChange = { this . handleChange }
Original file line number Diff line number Diff line change 1
- import React from 'react'
2
- import { render } from 'react-dom'
3
- import App from './components/App'
1
+ import React from 'react' ;
2
+ import { createRoot } from 'react-dom/client' ;
3
+ import App from './components/App' ;
4
4
5
- import 'todomvc-app-css/index.css'
5
+ import 'todomvc-app-css/index.css' ;
6
6
7
- render (
8
- < App /> , document . getElementById ( 'root' )
9
- )
7
+ const container = document . getElementById ( 'root' ) ;
8
+ const root = createRoot ( container ) ;
9
+ root . render ( < App /> ) ;
You can’t perform that action at this time.
0 commit comments