Svelte
[!INFO]-
topic: π₯οΈ Tech
links:
- Pros and cons of React
- Vue
- Riot
source:
- Svelte vs. React vs. Vue | Best SPA Framework for 2022 - YouTube
- GitHub - feltcoop/why-svelte: Why Svelte is our choice for a large web project in 2020
tags: #permanent-noteΒ #published
Last Modified:
=dateformat(this.file.mtime, "MMM. dd, yyyy - HH:mm")
Svelte compiles your code at build time, creating fast native code in a small bundle size.
Svelte is a JavaScript framework to build user interfaces. It is different from other frameworks like React or Vue because it compiles the code at build time rather than at runtime., generating highly optimized code that runs faster and takes up less space.
Svelte works by converting the code written in its own syntax, known as Svelte components, into efficient JavaScript code that manipulates the DOM. It does this during the build process, which eliminates the need for a virtual DOM like in other frameworks.
One of the key advantages of Svelte is its small bundle size. Since it compiles the code upfront, only necessary code is included in the final bundle, resulting in smaller file sizes and faster load times.
Another benefit of Svelte is its simplicity and ease of use. The syntax is straightforward and easy to understand, making it accessible to both beginners and experienced developers.
Sveltes documentation and tutorials are excellent and approachable.
Pros | Cons |
---|---|
high performance, small bundlesize | smaller dev team & community |
great documentation |