Document Object Model

Learn how the DOM and React work together to give a complete interactive user experience.

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 the ...