This repository contains example apps for vanilla JavaScript, Angular, React, Svelte, and Vue.
Framework | Files (src) | Lines of code (src) | Characters (src) | Build size |
---|---|---|---|---|
Vanilla JS | 7 | 1 016 | 33 828 | 2.38 KiB (gzip) |
Angular | 40 (26) | 20 991 (360) | 796 439 (12 060) | 49.28 KiB (gzip) |
React | 20 (13) | 2 560 (217) | 95 628 (6 507) | 46.83 KiB (gzip) |
Svelte | 17 (8) | 2 556 (181) | 90 137 (4 914) | 5.37 KiB (gzip) |
Vue | 15 (8) | 2 962 (190) | 112 808 (5 144) | 23.55 KiB (gzip) |
Relevant blog at gaute.dev/dev-blog/why-i-prefer-vue-over-react