As the second argument, the react event object is passed. You must use the arrow function or bind the function if you want to give an argument to the click event handler. If you supply the argument explicitly, the onClick method will be called even before the button is pressed.
Very helpful course in learning ReactJS
very good course. Content Delivery of Trainer is very very awesome. I suggest everyone who want to learn react I prefer learn vern
Thanks LearnVern, If I get job than I will donate my 1st salary to LearnVern
Good explain with ex
Really highly recommended complete course. The content is amazing
Perfectly Structured Course And Language Hindi hai tho or bhi ache se understand ho raha hai...!!!