@@mattdevz314'useEffect' is used for asynchronous things, events are considered that way, since you don't know when they will occur. It is important to clean up the 'EventListeners' to avoid errors.
You know wht I wasn't using tailwind, but I couldn't get how to shift the li items to left,,, they were in center and even after hovering the blue background covered the right part where li was shifted and wasn't covering the entire part, and this just irritated me a lot, however the video was awesome and in context of drop-down exactly what I was looking for
thank you so much , i have been suffering for long to make it work like that, i didn't know i have to use 2 different refs
Syukron perfect❤
you need to add your event subscription in a useEffect hook and remove it as well using window.removeEventListner.
Could you explain why that would be necessary? I'm genuinely curious .
@@mattdevz314'useEffect' is used for asynchronous things, events are considered that way, since you don't know when they will occur.
It is important to clean up the 'EventListeners' to avoid errors.
perfect! exactly what i was looking for
Enjoy
Nice video but when you press menuRef children , its close drowpdown
very helpful. Thank you
Share and subscribe ❤️❤️❤️
Like and aún , Nice video , love Tailwind and react ❤️
This tip was very good! Thanks
Share and subscribe 💕
Perfect!!! , if I want to include icons to the drop down how do I go about it ?
Use react icons it's very easy
You know wht I wasn't using tailwind, but I couldn't get how to shift the li items to left,,, they were in center and even after hovering the blue background covered the right part where li was shifted and wasn't covering the entire part, and this just irritated me a lot, however the video was awesome and in context of drop-down exactly what I was looking for
Superb i subscribe your channel
Helpful 👍
Share and subscribe ❤️
thx but why did it show false twice
Thanks
Nice
Share and subscribe ❤️
Thx
Share and subscribe ❤️
where is the source code ?
Good work. Thanks for sharing.
👍💕
@@CodeAProgram I think Tailwind CSS is bonus :)
😅😅
'menu' is not defined no-undef
It is not work
it work for me but i did have to make a few changes for that to happen. I can send you my code if you want?
@@keyonlewis7574 i need it, can you please send the code?
@@keyonlewis7574can you send it to me please?