Svelte created a "new wheel" - runes

The front-end UI framework Svelte announced that the next major version, Svelte 5, will introduce a new API called "runes" .

Judging from the announcement, runes is an exploration by the Svelte development team to reflect on "reactivity" .

Svelte 5 changes all that with runes, which unlock universal, fine-grained reactivity.

They say runes provide more general-purpose, and more fine-grained responsiveness .

Since the design ideas of Svelte's runes and Vue Reactive Transform are relatively similar, some developers made the following summary:

runes(Svelte) = ref(Vue) = signal(Solid/Angular) = observable(Mobx) ...

Someone even made a code comparison chart between Svelte and Vue, indicating that Svelte 5 will become very similar to Vue :

At present, Svelte 5 is not ready for use in the official environment, but its development team provides a playground where you can experience the new features: svelte-5-preview .

Supongo que te gusta

Origin www.oschina.net/news/259069/svelte-5-api-runes
Recomendado
Clasificación