Skip to content

Instantly share code, notes, and snippets.

@cabreraalex
Last active September 25, 2019 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cabreraalex/72fd17b9c398276a9d699bf179220384 to your computer and use it in GitHub Desktop.
Save cabreraalex/72fd17b9c398276a9d699bf179220384 to your computer and use it in GitHub Desktop.
Simple Svelte example
<script>
let count = 0;
function handleClick() {
count++;
}
</script>
<h1>The count is {count}</h1>
<button on:click={handleClick}>Add to count</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment