score:0

<button onClick={() => setState(state++)}>setState in App Component</button>

score:1

() => setState((state) => !state)

Related Query

More Query from same tag