3 ms·
Thanks for the clarification. I was replying to the poster who was using: setState({...state, a: 4}) and so I assumed they were already operating in a cla
by drdec 5y ago
Thanks for the clarification.
I was replying to the poster who was using:
setState({...state, a: 4})
and so I assumed they were already operating in a class component.