1 Are frontend frameworks magic to you?
This chapter covers
- Why you should build your own frontend framework
- The features of the framework we’ll build together
- How frontend frameworks work
Have you ever wondered how the frontend frameworks you use work internally? Are you curious about how they decide when to re-render a component and why they update only the parts of the Document Object Model (DOM) that change? Isn’t it interesting that a single HTML page can change its content without reloading and that the URL in the browser’s address bar changes without requesting the new page from a server? The inner workings of frontend frameworks are fascinating, and there’s no better way to learn about them than to build one from scratch. But why would you want to learn how frontend frameworks work? Isn’t it enough just to know how to use them?