From 56a6240bf700ac307342ed494d8bfbabe5c822dc Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 19 Apr 2023 17:50:02 +0800 Subject: ✨docs init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/components/counters.tsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/components/counters.tsx (limited to 'docs/components/counters.tsx') diff --git a/docs/components/counters.tsx b/docs/components/counters.tsx new file mode 100644 index 0000000..b78f12d --- /dev/null +++ b/docs/components/counters.tsx @@ -0,0 +1,24 @@ +// Example from https://beta.reactjs.org/learn + +import { useState } from 'react' +import styles from './counters.module.css' + +function MyButton() { + const [count, setCount] = useState(0) + + function handleClick() { + setCount(count + 1) + } + + return ( +
+ +
+ ) +} + +export default function MyApp() { + return +} -- cgit v1.2.3-70-g09d2