Ever wondered how frameworks like React, Vue, or Angular work under the hood? In this step-by-step coding tutorial, I build a fully functional frontend framework from scratch using pure JavaScript—no dependencies, no magic, just code!
🔗Get the code on GitHub: https://github.com/mfrachet/create-frontend-framework
📚In this step-by-step guide, you'll learn:
- How templating works under the hood (using Template Literals)
- Implementing a Virtual DOM with Snabbdom
- Building a reactive state management system
- Creating components like modern frameworks
- DOM rendering and efficient change detection
💡Why build your own framework?
- Understand how popular frameworks REALLY work
- Level up your JavaScript mastery
- Gain confidence to contribute to open-source frameworks
- Impress in technical interviews
⏱ Timestamps:
00:00 - Introduction
02:05 - Requirements
02:35 - Setup
03:35 - Project structure
7:27 - Templating
• What's a template?
• Template literals as template engine
• Display the template in the DOM
• Creating our first component
17:36 - Virtual DOM
• What is a Virtual DOM?
• Existing VDOM implementations
• Adding Snabbdom
• Event Handling with Snabbdom
26:16 - State management
• What is the state of an app?
• How it works in known frameworks?
• Our own state management system
32:19 - Bring it all together
• Real world components
• Creating component in known frameworks
• Creating our own definition of component
• Change detection
• Modify the state of our app
• Bring it all together
43:40 - What's next?
47:07 - Outro
🔔Subscribe for more advanced JavaScript content: https://www.youtube.com/@Glitcher-x
#FrontendDevelopment #JavaScript #WebDevelopment #CodingTutorial #Programming #FrontendFramework #BuildFromScratch #React #Vue #Angular #VirtualDOM #StateManagement