I have purchased the React course by Mosh and am going through the materials, currently a little stuck on lesson 14, where he shows how to pass event arguments.
As per the video, I have the below code, within the render method:
Thanks for the response, product is the parameter Mosh passes on the handleIncrement() method on the video, as he writes the code, I know it is not defined, but on his clip it does not have such problem. I am a little confused as to why to be honest.
it’s just an example, that you can pass id or item like this
it’s long time when I watched this course may be he did define product but unable to record that part or might be he didn’t click on that button