Skip to content

Instantly share code, notes, and snippets.

@jprochazk
Last active March 28, 2023 20:22
Show Gist options
  • Save jprochazk/b5fa72b90b45f864f3cfe72ed3094b09 to your computer and use it in GitHub Desktop.
Save jprochazk/b5fa72b90b45f864f3cfe72ed3094b09 to your computer and use it in GitHub Desktop.
<script>
import { count } from "./state";
</script>
<h2>{$count}</h2>
<button on:click={() => $count += 1}>Inc</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment