React JS tutorial for beginners: Tutorial 6 - Make a mobile menu with state hooks
HTML-код
- Опубликовано: 4 июл 2024
- In this video we'll be using using the useState hook to open and close a mobile menu.
#LearnReact #100DaysOfCode #FreeCodeCourse #ReactJS
Download the code:
github.com/QuentinWatt/React-...
Follow me on social media:
Twitter: @QuentinWatt
Facebook: @quentinwatt
Instagram: @quentinwatt
Looking for a job? Try one of these referral links.
-----
Europe: (London, Germany, The Netherlands, Barcelona & more)
app.honeypot.io/ref/mDJbyi5GM2...
South Africa: (Cape Town, Johannesburg & Pretoria)
www.offerzen.com/z/V0ImHT
---
Subscribe:
/ quentinwatt
I also make videos here:
/ quentin
Donate with Paypal:
www.paypal.com/cgi-bin/webscr...
10/10 video not using libraries for everything and explaining the logic behind.
Thats just a perfect and really very useful video. Amazing concept of State Hook
Just wanted to say thank you, I'm new to react and was having some trouble coming up with the menu logic, but you made this seem pretty simple
Very simple and well explained. Thank you for helping me build my web portfolio!
Great to hear!
Thank you for these videos!
My pleasure!
Thanks Quentin!
It's a pleasure.
amazing keep it up
best video ever on youtube for sidebar with react..
Thanks.
bravo bravo!! I subscribed your channel. I wish I could found your videos sooner. big thanks, brother!
Thanks for the sub!
love it
I hope you don't get insulted. :)
This React course taught me more in 2 hours than most 40 hour courses did! Thanks Quentin. One question though, how would I be able to make the menu push from the left rather than overflow the content? So when you click the burger the whole screen shifts to the right as the menu comes in?
The solution you are looking for would be mostly css based.
When you click a button the margin on the left should slowly grow for 0.3 - 0.5 seconds. that's all css based. You only need javascript to trigger the margin in the left to grow or shrink.
nice video overheeereeee ;)
Thanks 😁
Does anyone know how he gives elements css properties just by adding a class, such as 'fixed'?
Tailwind css
@@aliahmadchour ty
Does anyone know how you would be able to toggle a different menu based on a media query or based on screen size?
Something like this:
/* outside the media query */
.little-menu {
display: none;
}
.big-menu {
display: block;
}
@media only screen and (max-width: 600px) {
.big-menu {
display: none;
}
.little-menu {
display: block;
}
}
Could you please add the github link for the icons?
Sorry about that. It's "font awesome", it's a 2 second Google search away though.