Document Object Model
Explore how the Document Object Model (DOM) works in React to dynamically create and update web page elements. Understand the React.createElement method and ReactDOM.render's role in building and rendering the HTML tree structure for your user interface.
We'll cover the following...
We'll cover the following...
The Document Object Model (DOM)
So now that we’ve seen a simple example of how to use React, let’s dig a little more into how it works, as well as learn a few architectural concepts. This information isn’t critical, but it may help us visualize what is happening in our code a little better.
While not an exact comparison, React is mostly the view layer in MVC (Model-view-controller) architecture terms. It is essentially a function, or collection of functions, that takes ...