12 lines
237 B
TypeScript
12 lines
237 B
TypeScript
|
import React from "react"
|
||
|
import ReactDOM from "react-dom"
|
||
|
|
||
|
const Hello = () => <div>Hello</div>;
|
||
|
|
||
|
const main = () => {
|
||
|
ReactDOM.render(<Hello />, document.getElementById('root'))
|
||
|
}
|
||
|
|
||
|
console.log(document.getElementById('root'))
|
||
|
main()
|