React Render HTML
React renders HTML to the web page by using a function called ReactDOM.render()
.
ReactDOM.render()
This function takes two arguments, HTML content which you want to show on page and HTML element where you want to put the HTML content(first argument).
But where will it find that element? It will find it inside "index.html" located in "public" folder. There you will notice a div
with id "root". That is where all this will be rendered!
0 Comments