For the use cases I would add a situation when you want to integrate React UI and a game engine. Using custom events you can make the game engine and React UI communicate and share data between each other.
Nice one - thanks. But I wonder about the use case. I think you mentioned decoupling different parts of an app which makes sense. But wouldn't a simple PUB/SUB mechanism (essentially a MAP where the key is the event "name" and the value is an array of handlers) be more efficient?
Sir, How to detect closed tab browser by javascript event? not reload ( i want to do something when user try to closed tab or exist browser directly without logout my web application ). thanks 🙏
no offense or anything, I was just wondering why do you misspell often. I see my CTO coding in the same style and was curious if this is dyslexia or just writing fast
There might be something that you want events to trigger for that aren't covered in JS's built in events. It really depends on what you need to do for your project. The possibilities are endless.
Been watching you for years now. You're such a good instructor, I attribute a lot of my knowledge to you, thank you so much!
Thanks for speaking clearly, as an Indonesian which i dont speak native english, your video is really helpful, thank you
Thanks!
Thank you for the support!
Will there be a follow-up video about using events in Node,js?
+1
NodeJS events are well documented if you can't wait
For the use cases I would add a situation when you want to integrate React UI and a game engine. Using custom events you can make the game engine and React UI communicate and share data between each other.
Nice video 👍 I like that you cover subjects like this (rare subjects). Others have videos that are mostly same and similar with other youtubers.
I’ve been doing web dev for years and just learned about custom events. Thank you for sharing 💪
dude your content is always just awesome, I can't wait to use this in a project
Using custom events in conjunction with web components is the cream of the top!
U are legit the best JS youtuber ever, keep doing your content because u are just the definition of perfect !
I don't know where you work but they are lucky to have you.
You should make a tutorial on how you keep your hair looking so good!
Do a follow-up video on how to do this with typescript's types please
Such a clear explanation. Kudos.
when would a composed event be more useful than a postMessage api call?
Nice one - thanks. But I wonder about the use case. I think you mentioned decoupling different parts of an app which makes sense.
But wouldn't a simple PUB/SUB mechanism (essentially a MAP where the key is the event "name" and the value is an array of handlers) be more efficient?
Weldone boss, pls can you make a video on how to set isTrusted=true
Please do some explanation on shadow DOM!
Hard to read, text is too small (whereas there's a lot of empty room in the screen)... :-(
Waiting for how to make your own JavaScript
Sir, How to detect closed tab browser by javascript event? not reload ( i want to do something when user try to closed tab or exist browser directly without logout my web application ). thanks 🙏
Ty
I used this in conjunction with a Promise; I had the Promise resolve when my custom event was generated.
Hi, How do you upload a document publicly for everyone like you did with the 2048?
Isn't there a native dblclick event already?
It is just an example showing how it could be implemented.
@WebDevSimplified you never showed how to "communicate between 2 different parts of the application"?
More appropriate name would probably be 'creating DOM events'. Technically this is not connected to Javascript.
Great! but the example not enough for what is the use case.
can you put your own event data in the dispatch event function
can u please make video on shadow DOM
Is this only for the web, or it works for nodejs aswell?
I love you Kyle
Klye, would you prepare for angular tutorial
learn vue or react, angular will die
lovely vid
Bro you got amazing hair :)
❤❤❤❤
What about EventEmitter?
no offense or anything, I was just wondering why do you misspell often. I see my CTO coding in the same style and was curious if this is dyslexia or just writing fast
Great
Not seeing the ; at the end of lines and the reliance upon ASI is sort of traumatic for me. Lol
:thumbsup:
Sheeeesh
Why would someone need a custom event ?
There might be something that you want events to trigger for that aren't covered in JS's built in events. It really depends on what you need to do for your project. The possibilities are endless.
The sound is too low man
100 like
Second comment
Please make tutorial for
like_unlike_dislike_undislike_comment_share_replay_save_unsave
🙏🙏🌱🌻
276th viewer
👏👏👏👏🙏🙏🙏🙏🙏👌👌👌👌👌🖖🖖🖖🖖🖖🖖🖖
First comment
Learn new