React Dark Mode | Dark Mode Toggle With React and Styled Components
HTML-код
- Опубликовано: 3 ноя 2020
- In this video I demonstrate how to build a dark mode toggle using react and styled components. Using the styled components theme provider we can easily pass around different css themes throughout the app and then toggle which theme we want to use rather easily.
Get 1 on 1 mentorship! ▶▶▶ www.codingwithchaim.dev/
Final code: github.com/coding-with-chaim/... Наука
This guy talks faster than the speed of light.
Yeah i usually put videos on 2x speed with this guy I go for 1.25 or 1.50 maximum :D
Which is why he’s great at what he does
Waking up to your videos is even better!
Its first time that have to slow down a tutorial video...
Styled components really does make this easy! Thanks!
It really does!
that's a great point, styled components ftw! do you use styled components a lot in your projects?
You’re a great teacher
you're so quick bro
thanks a lot man, i got this question in an interview tho
Thank you for this one I will love you forever.
thankyou so much for making gr8 n useful content for us
You’re very welcome
Thank you!
If we had multiple components inside the app component, do we need to pass theme props to every child component?. Or can we reference the theme from our styled components like that?
you can use the recoil
Salam , Thank you very much mr Chaim from Morroco
Would've loved taking a look @ how you'd implement theme setting presistence and avoiding of the infamous page reflesh flicker.
Very interesting question. I never tried this myself, but I do think that this is something that useLayoutEffect can solve.
Much appreciated your videos mate 🙂. I would be grateful if you could do a few videos on recoiljs and in particular getting data from.the server and updating data with sockets, while maintaining performance and atomic isolation.of rendered components.
Thank you anyhow..
First! 😃👍🏼excited for this video
Thanks!!!
I had to double check if I had my RUclips playback speed set to 2x
hey how can I add the SplashScreen file?
instead of writing transition on each object can't you just write in CSS "*{transition: ease-in-out .5s}"? because, if I'm not mistaken the "*" is going to target every object if they haven't been given a specific transition? I'm still kinda new to coding so please someone respond:). BTW great video:)
Can you make this tutorial for NextJS ?
I did the exact same thing your ding and the transitioning affects of the button is not working.
how can i save this to local storage?
and github code?? please
Will add to description today
Here is the code: github.com/coding-with-chaim/react-dark-mode
@@CodingWithChaim thank you soo much !!
I wouldn't complain if you could speak a little slower for foreigners , please . In spite of this, very cool video . Thanks :)
maybe u could be a better rapper than eminem
Auctioned.😂😂
Are you rapper ?
Салам модсенским
lol someone israeli in here im an israeli too