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