DEV Community

frustigor
frustigor

Posted on

2

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

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay