React basic component snippet

//import react and reactDOM libs
import React from 'react';
import reactDOM from 'react-dom';

//create a react component
const App = () => {
    return <div> Hi There!</div>;
}
//render
ReactDOM.render(
 <App />, document.querySelector('#root');
);

Add your comment