diff options
Diffstat (limited to 'docs/components/counters.tsx')
| -rw-r--r-- | docs/components/counters.tsx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/docs/components/counters.tsx b/docs/components/counters.tsx deleted file mode 100644 index b78f12d..0000000 --- a/docs/components/counters.tsx +++ /dev/null @@ -1,24 +0,0 @@ -// 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 ( - <div> - <button onClick={handleClick} className={styles.counter}> - Clicked {count} times - </button> - </div> - ) -} - -export default function MyApp() { - return <MyButton /> -} |
