Study how Vue 3's reactivity system works under the hood by reading and running mini-vue's simplified implementation.
Learn Vue 3's virtual DOM diff algorithm by tracing through the stripped-down runtime core step by step.
Use mini-vue as a readable reference when navigating the real Vue 3 source code, since both share the same naming conventions.
Follow the companion video course to build the entire Vue 3 core from scratch using a test-driven approach.
Run pnpm build to compile the project, open example HTML files with a local web server to see the demos in action.
Mini-vue is a teaching project that rebuilds the core of Vue 3, a popular JavaScript framework used to build web interfaces, in a stripped-down form. Vue 3's actual source code is large and contains a lot of code for handling edge cases and browser compatibility. Mini-vue removes all of that and keeps only the essential logic, making it easier for developers who want to understand how Vue 3 works under the hood. The project is written in TypeScript and mirrors the naming conventions of the real Vue 3 source code, so that once you understand how something works in mini-vue you can find the corresponding code in the full Vue 3 repository. It covers three major areas of Vue 3: the reactivity system (which tracks data changes and updates the UI automatically), the runtime core (which handles how components are created, updated, and removed from the page), and the compiler (which translates HTML-like template syntax into JavaScript functions). The repository is accompanied by a paid video course in Chinese, taught by the author, that walks through building mini-vue from scratch one step at a time. The course covers over 50 individual implementation steps, from basic reactive state tracking all the way through the diff algorithm that Vue uses to update the page efficiently. The author emphasizes test-driven development throughout the course, writing tests before writing the implementation code. To run the examples, you open the HTML files in the examples folder using a local web server. To build the project, you run pnpm build. The repository README is written primarily in Chinese and links to video course previews and purchase information on a Chinese e-learning platform.
← cuixiaorui on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.