React Click Events | Learn ReactJS

  Рет қаралды 37,564

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 38
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
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
@nawshadosman7810
@nawshadosman7810 3 жыл бұрын
you worth millions of subscribes, thank you
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
You're welcome! I appreciate your kind words. 🙏
@AunSyedShah
@AunSyedShah 2 жыл бұрын
An awesome explanation of events and references.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you!
@HoldenTudiks81
@HoldenTudiks81 10 ай бұрын
Love these videos ❤
@World_information5568
@World_information5568 3 жыл бұрын
Thank you so much Dear Sir for this series ♥️ . Please make this series to advance level
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
You're welcome! Yes, starting at the beginning and working my way up! 🚀
@World_information5568
@World_information5568 3 жыл бұрын
@@DaveGrayTeachesCode♥️♥️ 😊♥️♥️
@andrewclarke6916
@andrewclarke6916 3 жыл бұрын
@@DaveGrayTeachesCode Don't forget to include Redux!
@1conscience0dimension
@1conscience0dimension Жыл бұрын
How did you read in my mind ? Exactly this question at the end :)
@ercntreras
@ercntreras 3 жыл бұрын
Awesome!!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thanks! 🙏💯
@ice12328
@ice12328 2 жыл бұрын
Super explanation
@immortalaigs4203
@immortalaigs4203 3 жыл бұрын
Thank u. i ended it!
@rangabharath4253
@rangabharath4253 3 жыл бұрын
awesome as always :-)
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thanks again!
@markeem321
@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
@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
@midouwebdev2224
@midouwebdev2224 3 жыл бұрын
Thanks 🙏🏻
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
You're welcome! 🙏
@djheckler92
@djheckler92 3 жыл бұрын
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!*
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thanks for the comment and glad you found your answer! 💯🙏
@jamshidtashkent1976
@jamshidtashkent1976 2 жыл бұрын
very useful. Is it a full course by react js?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Yes, this video is part of a playlist that is a full course.
@jfnklstrm
@jfnklstrm 2 жыл бұрын
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?
@jfnklstrm
@jfnklstrm 2 жыл бұрын
I solved the first problem with $name - but I can't get the doubleClick to work
@ahmad-murery
@ahmad-murery 3 жыл бұрын
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,
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
That is an interesting consideration! Thank you for the comment Ahmad 🙏💯
@ahmad-murery
@ahmad-murery 3 жыл бұрын
@@DaveGrayTeachesCode Studying the tool before start using saves time, All thanks back to you Dave!
@ioniangaming
@ioniangaming Жыл бұрын
How did he know that {name} is dave ? 4:50
@ioniangaming
@ioniangaming Жыл бұрын
Is the parameter. Sorry sir for my ignorance.
@oncoding4520
@oncoding4520 2 жыл бұрын
More React :)
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Always!
@jerryezekwu1155
@jerryezekwu1155 2 жыл бұрын
I have been having an issue... Onclick works.. But on doubleclick doesn't despite using the same logic as you... Getting frustrated here
@TravinskiyVladislav
@TravinskiyVladislav 2 жыл бұрын
Top
@prajwaldule3839
@prajwaldule3839 Жыл бұрын
dammn i love u
@oujjahamza3033
@oujjahamza3033 Ай бұрын
🗾🗾🗾🗾🥭🥭🍎🍊
React useState Hook | Learn ReactJS
12:07
Dave Gray
Рет қаралды 31 М.
CSS Styles in React JS | Learn ReactJS
7:29
Dave Gray
Рет қаралды 37 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Responsive Navbar in React with Tailwind CSS and React Router
12:38
Fetch Data from API in React JS | Learn ReactJS
23:40
Dave Gray
Рет қаралды 40 М.
FAKER IS READY TO PLAY AMBESSA! | T1 Faker Plays Ambessa Mid vs Aurora!  Season 2024
30:52
React JS Lists and Keys | Learn ReactJS
32:54
Dave Gray
Рет қаралды 38 М.
Avoid this React State Mistake | React Previous State Explained
13:23
React JS Functional Components | Learn ReactJS
10:48
Dave Gray
Рет қаралды 44 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН