File size: 369 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
'use client'
import { useState } from 'react'
import styles from './style.module.css'
export default function Template({ children }) {
const [count, setCount] = useState(0)
return (
<>
<h1>Template {count}</h1>
<button className={styles.button} onClick={() => setCount(count + 1)}>
Increment
</button>
{children}
</>
)
}
|