React js dropdown menu close functionality | React js Tips | Learn React js
HTML-код
- Опубликовано: 2 окт 2022
- React js dropdown menu close functionality | React js Tips | Learn React js
Code A Program...
Follow us on :
Github : github.com/Sridhar-C-25
Instagram: / codeaprogram
🙏🤝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
Like and aún , Nice video , love Tailwind and react ❤️
This tip was very good! Thanks
perfect! exactly what i was looking for
Syukron perfect❤
Superb i subscribe your channel
very helpful. Thank you
Thanks
Perfect!!! , if I want to include icons to the drop down how do I go about it ?
you need to add your event subscription in a useEffect hook and remove it as well using window.removeEventListner.
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
Helpful 👍
Nice video but when you press menuRef children , its close drowpdown
Good work. Thanks for sharing.
Nice
Thx
thx but why did it show false twice
'menu' is not defined no-undef
where is the source code ?
It is not work