'react' export default function Counter() { const [count, setCount] = useState(0) return ( <div> <p>You clicked {count} times</p> <button onClick={() => setCount(count + 1)}>Click me</button> </div> ) } import styles from '../page.module.css' import Counter from './Counter' export default function Page() { return ( <main className={styles.main}> <div className={styles.description}> <p>Page2</p> </div> <Counter /> </main> ) } page2/page.tsx page2/Counter.tsx