Lesson 8: Argument of function makeDoggy(e)


#1

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


#2

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


#3

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