summaryrefslogtreecommitdiff
path: root/examples/blog/src/components/Counter.jsx
diff options
context:
space:
mode:
authorGravatar Drew Powers <1369770+drwpow@users.noreply.github.com> 2021-05-28 10:06:22 -0600
committerGravatar GitHub <noreply@github.com> 2021-05-28 10:06:22 -0600
commita0055bd985a6afe503e2ad2cb4f14b550b480a0a (patch)
treed3495a14d26df04714e9bef73b2b0a1bfc9c1faa /examples/blog/src/components/Counter.jsx
parent556b9e48e4451d5aedfa0f5863c83560ffd2ee69 (diff)
downloadastro-a0055bd985a6afe503e2ad2cb4f14b550b480a0a.tar.gz
astro-a0055bd985a6afe503e2ad2cb4f14b550b480a0a.tar.zst
astro-a0055bd985a6afe503e2ad2cb4f14b550b480a0a.zip
Create astro fixes (#267)
* Remove create-astro from workspace * Improve contrast ratio * Swap blank template for blog template * Remove counter components from blog template * Use `latest` astro version
Diffstat (limited to 'examples/blog/src/components/Counter.jsx')
-rw-r--r--examples/blog/src/components/Counter.jsx15
1 files changed, 0 insertions, 15 deletions
diff --git a/examples/blog/src/components/Counter.jsx b/examples/blog/src/components/Counter.jsx
deleted file mode 100644
index c9b27e1a7..000000000
--- a/examples/blog/src/components/Counter.jsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React, { useState } from 'react';
-// import confetti from 'canvas-confetti';
-
-export default function Counter() {
- // Declare a new state variable, which we'll call "count"
- const [count, setCount] = useState(0);
- // console.log(confetti());
-
- return (
- <div>
- <p>You clicked {count} times</p>
- <button onClick={() => setCount(count + 1)}>Click me</button>
- </div>
- );
-}