What is React?
a framework for building interactive UI’s
What is a React element?
an html element representation in the form of a javascript object. the object has a type property which specifies the element type and a children property which specifies children (if any), and a props property for any attributes.
How do you mount a React element to the DOM?
first you create a root by calling the createRoot method of the ReactDOM object with the query selected root as the argument.
you then call the render method on the return of ReactDOM.createRoot.
what is createRoot()
gives ReactDOM full control over the root dom element