关于svelte:sveltejs-vs-sfcjs

46次阅读

共计 317 个字符,预计需要花费 1 分钟才能阅读完成。

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

正文完
 0