Building React Application from Scratch
Here is a sample of my work that I included in the index.js which is inside the folder src.
Now we have to call the React library and ReactDOM in order to instantiate it into the application dependency and assign to the variable.
Since we had an error rendering the reactDOM because we had to make an instance of the App variable by wrapping it in JSX tag and passing it into ReactDOM.render. Like this: ReactDOM.render(<App />);
Now I am passing reference to the container. So it is saying go find the div with class container, then try to render the app container.
Here is the final code of the index.js in order to produce “Hi!” HTML code on the browser. On the next section I will go over some more components in order to build Youtube Mockup with React.