Lesson 8: Argument of function makeDoggy(e)


When we call this function, we do not pass the argument in onClick={makeDoggy}. Can anybody explain why is this so? Thanks.


makeDoggy is a callback to which React passes the event object (e) internally. That is if I’m not misunderstanding this.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.