React’s goal is in many ways to render HTML in a web page.
React renders HTML to the web page by using a function called createRoot()
and its method render()
.
The createRoot Function
The createRoot()
function takes one argument, an HTML element.
The purpose of the function is to define the HTML element where a React component should be displayed. Continue reading React Render HTML