How to build a Responsive Navbar in 7 mins - Using React and TailwindCSS

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 55

  • @MrItzreal
    @MrItzreal 5 місяців тому +6

    Straight to the point! No bs! No clickbait! Kept his word and wrapped everything in under 7 minutes.

  • @tirthadeva_yoga
    @tirthadeva_yoga 7 місяців тому +3

    Thank you very much, bro! You are really helped me.
    Namaste from Russia!

  • @YangoMangoHD
    @YangoMangoHD Рік тому +3

    Not one to normally comment but thank you so much! Building a hamburger menu for the first time and all other videos were upwards of 15 minutes. Thanks for making it short, concise and to the point 🙏

  • @atotamashii
    @atotamashii Місяць тому +2

    Just learning tailwind, I know what it does but i dont know how to do it :D but fortunately, saw your vid :D Thanks man keep it up!

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

    Great Job! Thanks for sharing your code and how it is done with Tailwind CSS.

  • @buhito23
    @buhito23 11 місяців тому +2

    A tip if you are going to use the editor with limited width to display the browser, try to use the line wrap in the editor and reduce a little bit the typography since you make changes and it gets lost where you modify because of the width of the editor.

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

    thank you so much! How do you make the dark mode button outside the drop-down menu in responsive mode? as it appears at the beginning of the video, I have tried to do that but it doesn't work

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

      Oh that is a remix logic I made another video about it called "dark-mode in Remix", I think you can also use next-themes for that if you are using next.js

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

      @@raj_talks_tech Thank you, can you bring this same code to Astro 4?

  • @fullstack-insights
    @fullstack-insights 9 місяців тому +4

    But how navbar is opening smoothly

  • @olekorvald5148
    @olekorvald5148 Місяць тому +1

    Hey, nice video. I have not used tsx so much (only jsx), so I was wondering if you have to use tsx for the navbar or if the files can be created with jsx as well ( Header.jsx instead of Header.tsx for instance)?. Is it possible that you can send the commandlines for the packages that you used in this video? :)

    • @raj_talks_tech
      @raj_talks_tech  Місяць тому

      Everything can be found in the attached codebase in the description. You can simply change the files to jsx and remove only the types

  • @kaiserz3843
    @kaiserz3843 10 місяців тому +1

    Thankyou so much man! just started learning and u helped me ;D

  • @AngelaCui-fn2tn
    @AngelaCui-fn2tn 2 місяці тому +1

    Thank you so much for sharing! I've tried to reproduce this but for some reason the navbar disappears after clicking home. Then will re-appear after clicking refresh page. Any ideas?

    • @raj_talks_tech
      @raj_talks_tech  2 місяці тому

      @@AngelaCui-fn2tn Not sure about ur use-case, can you post it on my discord channel ?

  • @baraa7869
    @baraa7869 5 місяців тому +2

    but there is a small bug, when isOpen is true and you expand the screen, the vertical nav links are still visible over the horizontal one

    • @pablokrainuk8530
      @pablokrainuk8530 2 місяці тому

      i fixed it like that:
      useEffect(() => {
      function handleResize() {
      setWidth(window.innerWidth);
      }
      window.addEventListener("resize", handleResize);
      return function cleanup() {
      window.removeEventListener("resize", handleResize);
      };
      }, []);
      const isSmallScreen = width

  • @rbedson8965
    @rbedson8965 3 місяці тому

    is it good idea to make the duplicate of menu element which you have made for home and blog

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

    thanks it was helpful and clean code structure

  • @Nirusvlogs
    @Nirusvlogs Рік тому +1

    Thanks for menu. How to fix content without moving down. Menu over lay top of content

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

    Hi raj could you please make how to set up sass in next js project please I tried and I couldn't get it I also read the docs still same

  • @krzysztofrozbicki1776
    @krzysztofrozbicki1776 Рік тому

    Ahhh i miss the part where you would be explaining the line 5 of code with activeStateCallback - that suddenly appears without any explanations. I was just searching web on how is the easiest way to implement tailwind into isActive default class for Navlink. But not here :(

  • @Eyuelfrew
    @Eyuelfrew 10 місяців тому +1

    thanks, keep it up brotehr

  • @jalexba
    @jalexba 8 місяців тому +1

    what about if you made a fullstack tutorial with remix.. maybe a MERN sack or something like that?

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

      There is a fullstack remix tutorial that I have made btw :) check out my channel

  • @book2nez500
    @book2nez500 Рік тому +1

    Thank you
    I just subscribed

  • @NotWorkingChannel-dq7rn
    @NotWorkingChannel-dq7rn 5 місяців тому

    When i try to follow i receive a destructure error when i try to use NavLink.
    TypeError: Cannot destructure property 'future' of 'React.useContext(...)' as it is null.
    The above error occurred in the component
    For what reason would this error affect me when during the video, this did not happen to you?

    • @KaelThresh
      @KaelThresh Місяць тому

      in main.tsx surround your App component with BrowserRouter (from the react-router-dom)

  • @franciscoaloi5769
    @franciscoaloi5769 Рік тому

    Thanks a lot Raj!

  • @thivatutorials4040
    @thivatutorials4040 10 місяців тому +1

    super bro

  • @jesusre8495
    @jesusre8495 Рік тому +1

    Excelente, muchas gracias!

  • @lillyr.9139
    @lillyr.9139 Рік тому +1

    So good!!!

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

    bro..............goood

  • @WebSpyder32
    @WebSpyder32 5 місяців тому

    It maybe only be in my project but i think the styles are not exactly as they should be as seen in the video

  • @SalmanShah95
    @SalmanShah95 4 місяці тому +3

    Thanks

  • @ilyas_babu
    @ilyas_babu Рік тому

    How to add animation on toggle menu

  • @stewartbatallasminda4024
    @stewartbatallasminda4024 Рік тому +1

    so useful!

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

    ghood job...

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

    waah ji waah

  • @adrianCoding
    @adrianCoding 8 місяців тому +1

    Nice

  • @Mickeydollar_9
    @Mickeydollar_9 Місяць тому +1

    Tysm

  • @musician750
    @musician750 11 днів тому

    You should make project setup video first so that we can also start coding with you

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

    Muchas gracias

  • @sciencekesadhan1107
    @sciencekesadhan1107 5 місяців тому +1

    Bro while typing plzzz zoom the screen plzzzzzzzzzzzzzz

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

    love you...

  • @sudarshanpatekar5632
    @sudarshanpatekar5632 2 місяці тому +1

    Well this was not useful, Firstly you put in the title that it is ReactJs but it was Remix not having single JS file. Secondly you did not show where to import the Header and NavLinks, the components which were made.

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

    hey bro ............

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

    kabhi hindi me kar liya

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

    didnt get a shit, sorry

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

      Sorry for that. What could've been done better ?