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.

1 Like

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