summaryrefslogtreecommitdiff
path: root/examples/framework-svelte/src/components/Counter.svelte
blob: 9aaf421c1a9578381186f83b849e8f746d76f4ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<script>
  let count = 0;

  function add() {
    count += 1;
  }

  function subtract() {
    count -= 1;
  }
</script>

<div class="counter">
  <button on:click={subtract}>-</button>
  <pre>{ count }</pre>
  <button on:click={add}>+</button>
</div>
<div class="children">
  <slot />
</div>
aa15fea?s=13&d=retro' width='13' height='13' alt='Gravatar' /> Ben Holmes 3-3/+3 2024-04-01db: Better error messages when querying remote (#10636)Gravatar Ben Holmes 6-32/+69 2024-04-01Give proper error when seed missing default export (#10635)Gravatar Matthew Phillips 2-1/+6 2024-04-01[ci] formatGravatar Matthew Phillips 2-4/+4 2024-04-01Make ASTRO_DATABASE_FILE work with file paths (#10631)Gravatar Matthew Phillips 4-4/+43 2024-04-01Make `@astrojs/markdown-remark` a dep in `@astrojs/markdoc` (#10632)Gravatar Bjorn Lu 3-4/+9 2024-04-01[ci] formatGravatar Ben Holmes 1-2/+2 2024-04-01db: Seed on dev server startup (#10599)Gravatar Ben Holmes 3-11/+54 2024-04-01Remove deprecated APIs from `@astrojs/markdown-remark` (#10629)Gravatar Bjorn Lu 7-81/+23 2024-04-01Lazy loaded shiki languages during syntax highlighting (#10618)Gravatar James Garbutt 16-110/+169 2024-04-01Move nft warnings behind verbose logging (#10609)Gravatar Matthew Phillips 2-2/+7 2024-04-01Fixes issue with head content being pushed into body (#10608)Gravatar Matthew Phillips 3-7/+12 2024-04-01feat: rework child rendering to use class (#10624)Gravatar James Garbutt 2-33/+51 2024-04-01refactor: Drop Preact compat hack, remove incorrect alias (#10585)Gravatar Ryan Christian 2-8/+7 2024-04-01[ci] formatGravatar ktym4a 1-1/+1 2024-04-01fix(starlog): Correct layout syntax. (#10627)Gravatar ktym4a 2-7/+7 2024-04-01fix: use ReadableStream for response object if deno (#10495)Gravatar Satya Rohith 3-2/+13 2024-03-29Remove the ssr external for vue (#10601)Gravatar Tyler van der Hoeven 2-1/+5 2024-03-29reset history title after push/replace but prior to assignment to location (#...Gravatar Martin Trapp 2-1/+6 2024-03-29fix: dont error on nullish prop values in jsx runtime (#10584)Gravatar duanwilliam 2-1/+6 2024-03-28[ci] release (#10598)astro@4.5.12@astrojs/vercel@7.5.0@astrojs/markdoc@0.9.3@astrojs/internal-helpers@0.4.0@astrojs/db@0.9.8Gravatar Houston (Bot) 6-50/+52 2024-03-28[ci] formatGravatar TK 1-2/+2 2024-03-28feat: allow dynamic route segments in isr.exclude array (#10513)Gravatar TK 5-3/+69 2024-03-28[ci] formatGravatar Houston (Bot) 2-3/+3 2024-03-28[ci] release (#10597)Gravatar Houston (Bot) 37-66/+89 2024-03-28db: Rework index config with generated index names (#10589)Gravatar Ben Holmes 6-68/+344