diff --git a/examples/blog/astro/components/Counter.jsx b/examples/blog/astro/components/Counter.jsx new file mode 100644 index 000000000..3fb32dea7 --- /dev/null +++ b/examples/blog/astro/components/Counter.jsx @@ -0,0 +1,17 @@ +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 ( +
You clicked {count} times
+ +