import react dom
snippet in javascript

import react dom

user6482

import ReactDOM from 'react-dom';

ReactDOM.render()

user9149

ReactDOM.render(<p>Hello</p>, document.getElementById('root'));

how to import react dom and react

user9901

npm install react react-dom

ReactDOM.render()

user4009

ReactDOM.render(element, container[, callback])