React Dark Mode Toggle/Theme - Complete Guide

  Рет қаралды 32,776

Code Complete

Code Complete

Күн бұрын

Пікірлер: 26
@Selconag
@Selconag 10 ай бұрын
This video is overwhelmingly good. Starting with a meme moment is the best thing ever.
@Code_Complete
@Code_Complete 10 ай бұрын
Thanks haha, glad you liked it!
@marekjjjj
@marekjjjj 7 ай бұрын
finally someone who shows the right way, thanks so much, saved my day
@mercy4120
@mercy4120 10 ай бұрын
great video! just the approach i had been searching about how to implement
@Victor-wy1wj
@Victor-wy1wj Күн бұрын
Thank you a lot
@hussein-alemam
@hussein-alemam 5 ай бұрын
Thanks man, great video!
@SWebDev7
@SWebDev7 11 ай бұрын
So very compacted precious informations i love it thanks you very much
@Code_Complete
@Code_Complete 11 ай бұрын
Glad it was helpful!
@pixel_designs
@pixel_designs 6 ай бұрын
Thank you so much man!
@victoriaanisimova3533
@victoriaanisimova3533 4 ай бұрын
Thank you sm! You saved me :)
@thothhermes7270
@thothhermes7270 5 ай бұрын
Thanks man, it works like a charm
@ziw3033
@ziw3033 10 ай бұрын
Great video :) I tried your method and noticed that it works for a single component! What if I have a Navbar that sits on the top of every page? Thank you in advance😃
@ziw3033
@ziw3033 10 ай бұрын
ah never mind I figured it out :)) as long as the individual divs on separate components also have useLocalStorage and data-theme in their divs, they work!
@joshuadk1394
@joshuadk1394 7 ай бұрын
@@ziw3033 How did you do this cause i got my dark mode in my navbar but it doesnt change any of my other pages only the navbar
@2gbeh
@2gbeh Жыл бұрын
Magic ✨
@joshuadk1394
@joshuadk1394 7 ай бұрын
Im having Trouble to able the darkmode to my whole component i currently have the darkmode component in the navbar and then i import the navbar into the app.js file but it doesnt then change the other pages
@tejas-q6b
@tejas-q6b Жыл бұрын
What if we want to apply dark mode to only a container on current page instead of whole app?
@paski702
@paski702 Жыл бұрын
Add "data-theme" to your container like:
@ZainM.
@ZainM. Жыл бұрын
isDark ? "dark" : "light" Where basically "light" doesn't exist so it goes back to default right ?
@Code_Complete
@Code_Complete Жыл бұрын
Yup that’s right, you could leave it as “dark” : “” as well
@ZainM.
@ZainM. Жыл бұрын
Your Video's are helping me clear concepts! Thankyou so much @@Code_Complete ❤❤
@sayfillayevmuhammad
@sayfillayevmuhammad 6 ай бұрын
Thank you
@GameStrings
@GameStrings Жыл бұрын
😅
@MuhammadAbdullah-fr1fu
@MuhammadAbdullah-fr1fu 9 ай бұрын
bro your teaching style is not good. Plz talk slow so we know what you are saying
@S-Lomar
@S-Lomar Жыл бұрын
Well done 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.