Build a Frontend Web Framework (From Scratch)
eBook - ePub

Build a Frontend Web Framework (From Scratch)

  1. 384 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Build a Frontend Web Framework (From Scratch)

About this book

Learn how a frontend web framework works by coding your own! Web developers use frontend frameworks every day—but do you know how these essential parts of your stack really work? Build a Frontend Web Framework (From Scratch) reveals the inner workings of web frameworks by helping you create your very own. In Build a Frontend Web Framework (From Scratch), you'll learn the secrets behind frameworks like React, Vue, and Angular, including:

  • Create HTML documents programmatically
  • Define the view with virtual DOM
  • Update the HTML efficiently with reconciliation algorithms
  • Create two-way communication mechanisms between components in a hierarchy


Whatever your experience level, you'll be able to start building your framework with this guide. All you need is some core skills in HTML, CSS, and JavaScript. And once you've learned how frameworks function, you'll be able to work with them more efficiently, troubleshoot bugs more effectively, and even customize them for your specific needs! About the technology You use frontend frameworks every day, but do you really know what's going on behind the API? Building your own framework is a great way to learn how they interact with the DOM, generate page views, route data between components, and communicate with the underlying operating system. With this interesting and entertaining book, you'll build your own web framework step-by-step in JavaScript, ready to share with the world as an NPM package! About the book Build a Frontend Web Framework (From Scratch) guides you through a simple component-based frontend framework that borrows from React, Svelte, Angular, and other familiar tools. You'll learn how a modern framework operates by adding features like component state and lifecycle management, a virtual DOM, and reconciliation algorithms to update the HTML efficiently. You'll appreciate how each critical concept is broken down into easy-to-digest chunks and explained with engaging graphics. What's inside

  • Create HTML documents programmatically
  • Define the view with the virtual DOM
  • Implement a component lifecycle scheduler


About the reader
For web developers familiar with JavaScript and Node. About the author Angel Sola Orbaiceta has worked in the software industry for over a decade, creating software for the cloud, macOS, and Windows desktop applications. Table of Contents PART 1
1 Are frontend frameworks magic to you?
2 Vanilla JavaScript—like in the old days
PART 2
3 Rendering and the virtual DOM
4 Mounting and destroying the virtual DOM
5 State management and the application's lifecycle
6 Publishing and using your framework's first version
7 The reconciliation algorithm: Diffing virtual trees
8 The reconciliation algorithm: Patching the DOM
PART 3
9 Stateful components
10 Component methods
11 Subcomponents: Communication via props and events
12 Keyed lists
13 The component lifecycle hooks and the scheduler
14 Testing asynchronous components
Appendix

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Build a Frontend Web Framework (From Scratch) by Ángel Sola Orbaiceta in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in HTML. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Build a Frontend Web Framework (From Scratch)
  2. copyright
  3. contents
  4. dedication
  5. preface
  6. acknowledgments
  7. about this book
  8. about the author
  9. about the cover illustration
  10. Part 1 No framework
  11. 1 Are frontend frameworks magic to you?
  12. 2 Vanilla JavaScript—like in the old days
  13. Part 2 A basic framework
  14. 3 Rendering and the virtual DOM
  15. 4 Mounting and destroying the virtual DOM
  16. 5 State management and the application’s lifecycle
  17. 6 Publishing and using your framework’s first version
  18. 7 The reconciliation algorithm: Diffing virtual trees
  19. 8 The reconciliation algorithm: Patching the DOM
  20. Part 3 Improving the framework
  21. 9 Stateful components
  22. 10 Component methods
  23. 11 Subcomponents: Communication via props and events
  24. 12 Keyed lists
  25. 13 The component lifecycle hooks and the scheduler
  26. 14 Testing asynchronous components
  27. appendix Setting up the project