3 ms·
> Do the other frameworks also allow you to pick and choose and only use small parts as needed? Generally yes. Vue is on the lightweight side of things until
by pier25 7y ago
> Do the other frameworks also allow you to pick and choose and only use small parts as needed?
Generally yes.
Vue is on the lightweight side of things until you start adding more stuff (Vuex, Vue Router, http client, etc).
If you want a truly lightweight champion and are comfortable with vanilla JS check Mithril. In less than 10kB gzipped you get components, router, and an http client. By default it uses a hyperscript notation but you can use JSX too which is much better IMO.
Here is a starter kit I made for Mithril with Webpack to get you started: https://github.com/PierBover/mithril-jsx-starter-kit https://github.com/PierBover/mithril-jsx-starter-kit
- k__ 7y ago"Vue is on the lightweight side of things" Vue is on the average weight side of things. Frameworks like HyperApp and Preact I'd consider lightweight.
- pier25 7y agoSure there are smaller frameworks but 20kB is not heavy either.
- deleted 7y ago[deleted]
- Scarbutt 7y agoMithril's author moved to react long time ago.
- pier25 7y agoI know he uses React but how do you know he doesn't use Mithril anymore? I'd use React too if I had to work on a big project where there are more important factors than performance and bundle size.
- brlewis 7y agoFor companies, React is mostly better. For personal and educational projects, or where startup time is key, Mithril may be better. https://en.howtruthful.com/o/react_is_a_better_framework_than_mithril_for_single-page_web_applications/656cb9d8604e65b245554683f10a72aa https://en.howtruthful.com/o/react_is_a_better_framework_tha...