This chapter covers
- Loading the D3 library in frontend frameworks
- Creating a dashboard with D3 and React
- Allowing D3 to manipulate the DOM with React hooks
- Using D3 as a utility library and letting React render and update the DOM
- Applying the same strategies in Angular and Svelte
So far in this book, we’ve been creating projects in a simple but old-fashioned way by using only HTML, CSS, and JavaScript files. But today’s frontend projects are generally built with JavaScript frameworks. These tools facilitate the development of larger projects and optimize their performance.
With the help of JavaScript frameworks such as React, Angular, Svelte, and Vue.js, we can create projects where everything happens instantly and provide the feeling of a mobile application. We call such projects single-page applications (SPAs) because only one HTML file is loaded from the server and then updated dynamically, even for multipage websites.