Easy
In React, what is the issue with directly modifying the state object, and how can it be avoided?
1const [state, setState] = React.useState({ count: 0 });23function increment() {4 state.count++;5 setState(state);6}78<button onClick={increment}>Increment</button>;