乐趣区

关于svelte:sveltejs-vs-sfcjs

Sveltejs is a js framework based on compiling, sfcjs is a js component runtime in browser with svelte style syntax. This article will compare their syntax.

“hello world”

Dynamic attributes

styling

Nested component

Reactive assignments

Reactive declarations

Declaring props

If blocks

Loop blocks

Await blocks

DOM events

Component events

Two-way-binding

Reactive styling

退出移动版