summaryrefslogtreecommitdiff
path: root/examples/blog/astro/components/Counter.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/astro/components/Counter.jsx')
-rw-r--r--examples/blog/astro/components/Counter.jsx10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/blog/astro/components/Counter.jsx b/examples/blog/astro/components/Counter.jsx
index 3fb32dea7..c9b27e1a7 100644
--- a/examples/blog/astro/components/Counter.jsx
+++ b/examples/blog/astro/components/Counter.jsx
@@ -1,17 +1,15 @@
import React, { useState } from 'react';
-import confetti from 'canvas-confetti';
+// 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());
+ // console.log(confetti());
return (
<div>
<p>You clicked {count} times</p>
- <button onClick={() => setCount(count + 1)}>
- Click me
- </button>
+ <button onClick={() => setCount(count + 1)}>Click me</button>
</div>
);
-} \ No newline at end of file
+}