Skip to content

Commit 3809cf1

Browse files
authored
Tweak conventions
1 parent 4cf29b1 commit 3809cf1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

template/src/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import React from 'react';
2-
import { render } from 'react-dom';
2+
import ReactDOM from 'react-dom';
33
import App from './App';
44
import './index.css';
55

6-
const rootEl = document.getElementById('root');
7-
render(<App />, rootEl);
6+
ReactDOM.render(
7+
<App />,
8+
document.getElementById('root')
9+
);

0 commit comments

Comments
 (0)