React is a Javascript library, and just like Vanilla JS, React can respond to many events. The most common of these events is probably the click event. This tutorial will give examples of the various ways implement and respond to click events in React. Just getting started with Javascript? If so, I suggest starting with my full 8 hour Javascript tutorial for beginners here: kzbin.info/www/bejne/e5eknWyYrN-JkM0
@nawshadosman78103 жыл бұрын
you worth millions of subscribes, thank you
@DaveGrayTeachesCode3 жыл бұрын
You're welcome! I appreciate your kind words. 🙏
@AunSyedShah2 жыл бұрын
An awesome explanation of events and references.
@DaveGrayTeachesCode2 жыл бұрын
Thank you!
@HoldenTudiks8110 ай бұрын
Love these videos ❤
@World_information55683 жыл бұрын
Thank you so much Dear Sir for this series ♥️ . Please make this series to advance level
@DaveGrayTeachesCode3 жыл бұрын
You're welcome! Yes, starting at the beginning and working my way up! 🚀
@World_information55683 жыл бұрын
@@DaveGrayTeachesCode♥️♥️ 😊♥️♥️
@andrewclarke69163 жыл бұрын
@@DaveGrayTeachesCode Don't forget to include Redux!
@1conscience0dimension Жыл бұрын
How did you read in my mind ? Exactly this question at the end :)
@ercntreras3 жыл бұрын
Awesome!!
@DaveGrayTeachesCode3 жыл бұрын
Thanks! 🙏💯
@ice123282 жыл бұрын
Super explanation
@immortalaigs42033 жыл бұрын
Thank u. i ended it!
@rangabharath42533 жыл бұрын
awesome as always :-)
@DaveGrayTeachesCode3 жыл бұрын
Thanks again!
@markeem321 Жыл бұрын
Hi Dave. Do you handle in one of your videos, switching from Event bubbling to capturing in React? I would like to intercept an event from above. Question Two: Do u have a Patreon account :) ?
@DaveGrayTeachesCode Жыл бұрын
I don't have one for event bubbling & capturing in React, but I do have one for JavaScript - and React is a JS library: kzbin.info/www/bejne/i4e1daRjrNOZnc0 And thanks for asking about Patreon! I'm just starting one but it is not ready yet. I do have a BuyMeACoffee page: www.buymeacoffee.com/davegray
@midouwebdev22243 жыл бұрын
Thanks 🙏🏻
@DaveGrayTeachesCode3 жыл бұрын
You're welcome! 🙏
@djheckler923 жыл бұрын
Why does onClick={handleClick} omit the parentheses? If I include them, onClick={handleClick()}, it seems to execute the function immediately and only once on render. *Nvm, you answered it later in the video. Great lesson as always, thanks!*
@DaveGrayTeachesCode3 жыл бұрын
Thanks for the comment and glad you found your answer! 💯🙏
@jamshidtashkent19762 жыл бұрын
very useful. Is it a full course by react js?
@DaveGrayTeachesCode2 жыл бұрын
Yes, this video is part of a playlist that is a full course.
@jfnklstrm2 жыл бұрын
Just as Jerry I also have a problem with the code, and I've been double checking it for typos. I don't get the $name function to work - (name) get's 'greyed out' and the console just show ${name} was clicked. The next thing is that I don't get the double click to work - I've tried a number of ways to get it to work. But I'm stuck. Any one that can help me out?
@jfnklstrm2 жыл бұрын
I solved the first problem with $name - but I can't get the doubleClick to work
@ahmad-murery3 жыл бұрын
Not sure how react handles button click event but I always tend to add type="button" attribute to my buttons even if they are not inside a form element (just a habit), I know this is applicable for buttons inside a form only but it caused some troubles in the past to figure out why my page was reloading while I'm using xhr, after that I found that the default type for a button element is "submit" 🤦♂️ Nice video and looking forward to the next one,
@DaveGrayTeachesCode3 жыл бұрын
That is an interesting consideration! Thank you for the comment Ahmad 🙏💯
@ahmad-murery3 жыл бұрын
@@DaveGrayTeachesCode Studying the tool before start using saves time, All thanks back to you Dave!
@ioniangaming Жыл бұрын
How did he know that {name} is dave ? 4:50
@ioniangaming Жыл бұрын
Is the parameter. Sorry sir for my ignorance.
@oncoding45202 жыл бұрын
More React :)
@DaveGrayTeachesCode2 жыл бұрын
Always!
@jerryezekwu11552 жыл бұрын
I have been having an issue... Onclick works.. But on doubleclick doesn't despite using the same logic as you... Getting frustrated here