What's the difference between:
setScore(score + 1)
and:
setScore((prevScore)=>prevScore+1)
Link to content: Beginning ReactJS Foundations Building User Interfaces with ReactJS - Section 11
What's the difference between:
setScore(score + 1)
and:
setScore((prevScore)=>prevScore+1)
Link to content: Beginning ReactJS Foundations Building User Interfaces with ReactJS - Section 11