React js dropdown menu close functionality | React js Tips | Learn React js

preview_player
Показать описание
React js dropdown menu close functionality | React js Tips | Learn React js

Code A Program...

Follow us on :

🙏🤝Thanks for watching! Make sure to like + Subscribe For More!

#reactjs #tailwindcss #javascript #codeaprogram
Рекомендации по теме
Комментарии
Автор

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

Majdjedidi
Автор

Like and aún, Nice video, love Tailwind and react ❤️

Deus-lo-Vuilt
Автор

perfect! exactly what i was looking for

Noobrado
Автор

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

nikitapandey
Автор

you need to add your event subscription in a useEffect hook and remove it as well using window.removeEventListner.

aaaliiiu
Автор

Perfect!!!, if I want to include icons to the drop down how do I go about it ?

Leonard-ibeh
Автор

Nice video but when you press menuRef children, its close drowpdown

YonatanVigilioUsa
Автор

'menu' is not defined no-undef

PABHINAVYS