import React, { useState } from 'react';
function Counter() {
const [count, setCount] = useState(0);
function handleClick() {
setCount(count++);
}
return (
<div>
<p>Count: {count}</p>
<button onClick = handleClick>Increment</button>
</div>
);
}
export default Counter;
React component code that renders a simple counter, but it doesn’t update properly when the button is clicked, What fix would you suggest for this code?