Skip to content

Instantly share code, notes, and snippets.

@jprochazk
Created March 28, 2023 20:23
Show Gist options
  • Save jprochazk/266c21645377accf7cd0d67a54daf8a6 to your computer and use it in GitHub Desktop.
Save jprochazk/266c21645377accf7cd0d67a54daf8a6 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