Make a Dropdown Menu in React | Beginners Tutorial

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 15

  • @Code_Complete
    @Code_Complete  11 місяців тому +1

    Join our Discord server here! discord.gg/TWBtv5an7N

  • @huyi-isr
    @huyi-isr 3 місяці тому +3

    I've worked on this dropdown before, it actually has a lot of cases that need to be done
    - The hardest thing is for users to open dropdown and scroll, That means you need to calculate the position of the dropdown to make it display according to the frame, for example, scrolling down near the bottom of the screen must display it facing up.
    - Second is the smoothness of scrolling when scrolling with the mouse, dropdown is quite annoying, but scrolling with the touch pad is no problem.
    - Calculating up and down rotation is not enough, it is necessary to calculate left and right display
    - In addition, we also have to calculate the height for dropdown content, on tablets
    - If open is false, you should completely hide it, avoid unnecessary rendering. Open, you set the object's 2 keys as show and enable, show to display dropdown with css, and enable to handle display with JS,

  • @henrycontado245
    @henrycontado245 11 місяців тому +4

    Thanks bro this is the best video ❤

  • @NihalMahesh-jx1vp
    @NihalMahesh-jx1vp Місяць тому

    good concept on clicking outside the box

  • @mayuryadav2835
    @mayuryadav2835 7 місяців тому +1

    Very Informative

  • @thabomashiyane689
    @thabomashiyane689 10 місяців тому

    can you please do it with tailwind

  • @-MimKhatun
    @-MimKhatun 7 місяців тому

    After watching the video for 23 minutes, I realized that the dropdown content isn't changing. What is the outcome for this long video? it is 0.

    • @mayuryadav2835
      @mayuryadav2835 7 місяців тому

      I guess that much logic , you can apply and get it done

    • @nb664rbk
      @nb664rbk 6 місяців тому

      @@mayuryadav2835 yeah this tut is trash

  • @gajanankanekar9118
    @gajanankanekar9118 8 місяців тому

    will you please provide source code?

  • @RajYadav-yh7vv
    @RajYadav-yh7vv 7 днів тому

    why this much long video and too many files separately, in short it can be made

  • @dprtsuchai
    @dprtsuchai 6 місяців тому +2

    bruh go slower like got damn