Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 23, 2021 03:45 am GMT

2021 JavaScript framework

2021 is very different from previous years. Many web frameworks have released their new versions. Let's discuss them.

Vdom-based

For example, React, Vue and Preact all belong to this category.

This is also the most mature framework. Their advantages are mature, stable and suitable for most scenarios.

With SSR and partial hydration, react 18's fizz renderer is very interesting.

In addition, such as concurrent mode, scheduling optimization has been discussed for many years.

Fre is a little soldier in this camp. It is the smallest but the fastest.

https://github.com/yisar/fre

Compilation instead of runtime

Svelte, solidjs belongs to this category.

I always think that the web does not need to be optimized to the extreme, but the code architecture needs to be pursued unilaterally.

So I prefer Svelte a bit. Compilation and runtime should not coexist, which will make the framework more messy and mediocre.

Solidjs and Vue3 do not do this well. They have compilation and want to runtime. They can't have both fish and bear's paw.

Html first

History is reversingrecently, some frameworks want to return to HTML, away from vdom and away from compilation.

Such as Qwikjs and Alpinejs. They are enhancing HTML, Sprinkling intead of Hydration.

This does fill a part of the cake, but the performance will be lost. For example, alpine has always ranked last in the benchmark.

Summary

I like all three ideas. How about you?

Using one of them is entirely determined by my work.


Original Link: https://dev.to/132/2021-javascript-framework-2d0e

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To