Last active
September 25, 2019 14:30
-
-
Save cabreraalex/72fd17b9c398276a9d699bf179220384 to your computer and use it in GitHub Desktop.
Simple Svelte example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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