DEV Community

frustigor
frustigor

Posted on

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"

Alt Text

Dynamic attributes

Alt Text

styling

Alt Text

Nested component

Alt Text

Reactive assignments

Alt Text

Reactive declarations

Alt Text

Declaring props

Alt Text

If blocks

Alt Text

Loop blocks

Alt Text

Await blocks

Alt Text

DOM events

Alt Text

Component events

Alt Text

Two-way-binding

Alt Text

Reactive styling

Alt Text

Top comments (0)