This content originally appeared on DEV Community and was authored by Yisar
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.
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 reversing,recently, 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.
This content originally appeared on DEV Community and was authored by Yisar

Yisar | Sciencx (2021-08-23T03:45:32+00:00) 2021 JavaScript framework. Retrieved from https://www.scien.cx/2021/08/23/2021-javascript-framework/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.