DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

SVELTE Reference: Svelte Introduction

Quick reference for Svelte Introduction.

Read time: 1 min • Words: 16
My Progress

SVELTE Reference — Svelte Introduction

Quick summary of Svelte Introduction with syntax and example.

Syntax

<script> let x=0; </script>

Example

<script>
  let n = 0;
</script>

<button on:click={() => n += 1}>Count: {n}</button>