Created a basic home page with links, a header with a link to home, some basic reusable CSS classes. ref: N25B-38
17 lines
375 B
TypeScript
17 lines
375 B
TypeScript
import { useState } from 'react'
|
|
|
|
function Counter() {
|
|
const [count, setCount] = useState(0)
|
|
|
|
return (
|
|
<div className="card">
|
|
<button onClick={() => setCount((count) => count + 1)}>
|
|
count is {count}
|
|
</button>
|
|
<button className='reset' onClick={() => setCount(0)}>
|
|
Reset Counter
|
|
</button>
|
|
</div>
|
|
)
|
|
}
|
|
export default Counter |