November 2022
Beginner
624 pages
13h 39m
English
In this Chapter
Learn how to add many elements into the DOM performantly
Learn about the DocumentFragment and innerHTML approaches for modifying our DOM
An important part of working with the DOM is learning how to take a bunch of data and turning it into visuals we see onscreen. This general approach of having data drive what we see is a common pattern, especially as our apps get increasingly more dynamic. Let’s take Netflix for example, as shown in Figure 34.1.
FIGURE 34.1
Netflix is one of those web apps with a lot of content.
As we navigate through the Netflix app, we see a bunch of thumbnails ...
Read now
Unlock full access