15 lines
367 B
JavaScript
15 lines
367 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
// Create a new component. This component should produce
|
|
// some HTML
|
|
const App = () => {
|
|
return <div>Hi!</div>;
|
|
}
|
|
|
|
// App = function() similar to App = () =>
|
|
|
|
// Take this component's generated HTML and
|
|
// put it on the page (in the DOM)
|
|
ReactDOM.render(<App />, document.querySelector('.container'));
|