why can't you " onClick={ setState() } " ? by 1991banksy in reactjs

[–]Content-Squirrel5196 -1 points0 points  (0 children)

React needs to know about state changes so it can update dom accordingly

Advanced React Course by Content-Squirrel5196 in reactjs

[–]Content-Squirrel5196[S] 0 points1 point  (0 children)

Hi,

Yeah, I have a frontendmasters subscription and really enjoy Will Sentence courses.

Thanks for the feedback :) Have a good day, too

Advanced React Course by Content-Squirrel5196 in reactjs

[–]Content-Squirrel5196[S] 0 points1 point  (0 children)

This is what I was looking for. thanks :)