import React, { useState } from "react";
function App() {
const [count, setCount] = useState(0);
const handleClick = () => {
setCount(count + 1);
};
return (
<div>
<button onClick={handleClick}>CLICK</button>
<p>You have clicked the button {count} times.</p>
</div>
);
}
export default App;