Styled Components Full Tutorial - Style Your Components in React

  Рет қаралды 107,639

PedroTech

PedroTech

Күн бұрын

Пікірлер: 175
@MadBlissOff
@MadBlissOff 3 жыл бұрын
This is the first guy I've seen in my life with an imac and a mechanical keyboard.
@kalviyalkarpom4127
@kalviyalkarpom4127 2 жыл бұрын
No around the bush, No waste of time, Just Did Perfect Job
@jaimemedina3351
@jaimemedina3351 2 жыл бұрын
Nice job! FYI for anyone interested in what's going on under the hood, React is leveraging the Tagged Literals functionality of JavaScript.
@chawker67
@chawker67 3 жыл бұрын
This tutorial won that for me 🏆 I had issues with most of the stuff you showed and now everything is perfectly clear. What's more you got me motivated so that's another +
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Great to hear!
@bilalch898
@bilalch898 3 жыл бұрын
You deserve a million subs for sharing such a great knowledge ☺️
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you!
@jubjubfriend64
@jubjubfriend64 3 жыл бұрын
5:20 hahaha yes exactly what I was hoping for, just getting started with react and I was reluctant to use styled components due to it all being a string without auto-fill
@nirmalkoirala9660
@nirmalkoirala9660 3 жыл бұрын
Hey Pedro! I am starting to learn react as a complete beginner and your video is helping me more than Udemy’s React course. Just finished the portfolio website following yours and now everything seems to make sense. Keep on doing awesome job. Keep the videos coming. Thanks million
@worldclasscode1847
@worldclasscode1847 2 жыл бұрын
Go for it :)
@mpilodlamini8407
@mpilodlamini8407 2 жыл бұрын
Excellent tutorial. I am ready to and already applying styled components to my project. thank you very much
@lottexy
@lottexy 2 жыл бұрын
Amazing, so easy to understand! Tested this on typescript with a bit of googling to figure out the interface and all works great! Thanks pedro!
@yamilmsilva
@yamilmsilva Жыл бұрын
MAN !!!!! You made it look so easy and ABSOLUTELY UNDERSTANDABLE!!! Thank you so much. You are the best !!!
@Sezar_SZ
@Sezar_SZ 2 жыл бұрын
This was the best video explaining how styled components work. THANK YOU!
@skyescrawford9774
@skyescrawford9774 3 жыл бұрын
I'm so grateful because the first video that I see when first time I learn about styled components is yours video, thank you so much
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Great to hear!
@blueb06
@blueb06 2 жыл бұрын
Thanks....man...this is what exactly I needed.....these days...you are like a savior in my react learning journey !
@nicolasturek2413
@nicolasturek2413 3 жыл бұрын
explained very well, i appreciate you going through the small nuances and giving us reference examples!
@maxmaksum4673
@maxmaksum4673 3 жыл бұрын
it is the easiest and the most clear explanation of style component..thank you bro🙏🙏🙏
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you very much! Glad you liked it!
@apexroots
@apexroots 3 жыл бұрын
@@PedroTechnologies agree, thank you very much
@tech3425
@tech3425 2 жыл бұрын
15:56 You dont actually need the '&' symbol over there to show nested components. This is a CSS preprocessor called Scss, and it will automatically detect that you have nested the label inside the button. '&' is for copying the parent class name once again, for selectors like :hover, and :active, which dont work without the parent class name.
@williamhorn363
@williamhorn363 2 жыл бұрын
thanks for sharing this!
@윤재희-m6k
@윤재희-m6k Жыл бұрын
If i need some skill's how to use, Pedro always uploaded already. Your best guide I ever met
@craigbarber3046
@craigbarber3046 2 жыл бұрын
& is called ampersand 😉 Literature major transitioning into tech. Great job! Thanks for posting. I'm collaborating with a friend and he asked me to use styled components instead of inline styling and now I feel like I can get started.
@brandaoerick
@brandaoerick 2 жыл бұрын
I love the way you've approached this topic! Well done, bro!
@jamesdaniel597
@jamesdaniel597 2 жыл бұрын
Nice rundown of styled components
@worldclasscode1847
@worldclasscode1847 2 жыл бұрын
I agree :)
@hellofriend3091
@hellofriend3091 3 жыл бұрын
This is what i was looking for thanks mate
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad I could help
@limitless9483
@limitless9483 3 жыл бұрын
you can use that vscode plugin that help you rename your jsx tags
@royz_1
@royz_1 3 жыл бұрын
Loved the video. But in case you didn't know, styled-components uses SCSS. that's how it's providing all these extra functionalities.
@caffeinated-pixels
@caffeinated-pixels 3 жыл бұрын
Cheers dude, this is a great introduction to using styled-components. It's helped me a lot!
@sanvedbhoyar
@sanvedbhoyar 2 жыл бұрын
at 20:20 the reason why you have to pass className as props might be because styled components generates random classNames for us when we style a component... So when you styled the Button component, you essentially styled element of html.. and styled component automatically generated a random className for when you created component... Which is why I think this might be the reason you have to de-structure className prop in Button component so we can apply the styles from random className generated by styled components. Hope this helps
@leg875
@leg875 Жыл бұрын
I had the same query while watching the video. Thanks. Today I learned something new that after watching a video spend few mins to read through the youtube comments ;)
@MrAndykofi
@MrAndykofi 3 жыл бұрын
Nice, enjoyed your lectures please keep up with the good work.
@sarahcalbez7104
@sarahcalbez7104 2 жыл бұрын
Seriously, thank you a lot for this video!
@zafarhussain8273
@zafarhussain8273 3 жыл бұрын
one of th best video on styeld comp. i realy appriciate your effort
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thanks a lot 😊
@mikheilbeldishevski2776
@mikheilbeldishevski2776 Жыл бұрын
Thank you so much, you have answered so many questions I had. Thanks again.
@tsdineshjai8565
@tsdineshjai8565 3 жыл бұрын
learnt a lot at first go with this tutorial. Kudos Man !
@joaohelio2925
@joaohelio2925 2 жыл бұрын
How can I use the link with styled- Components?
@worldclasscode1847
@worldclasscode1847 2 жыл бұрын
You can keep the tag, and put a styled div around it. My link. Then in the styled code you use the ".mytag" class selector to address the class and inject the CSS :)
@pjguitar15
@pjguitar15 3 жыл бұрын
This makes code looks so clean
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Yess! I absolutely love projects structured using styled components!
@musicmoi
@musicmoi 3 жыл бұрын
So happy I found this channel. 💓
@mahfuzulhasan3108
@mahfuzulhasan3108 2 жыл бұрын
Explained very well, I appreciate it, keep it up
@Anopeng
@Anopeng 2 жыл бұрын
It's the best explanation for me, thank you very much!
@andarlin5312
@andarlin5312 2 жыл бұрын
Great video! Very informative!
@worldclasscode1847
@worldclasscode1847 2 жыл бұрын
It's very good. I love Styled Components
@balazsbereczky595
@balazsbereczky595 3 жыл бұрын
it's a good summary, thanks!
@varaprasad4163
@varaprasad4163 3 жыл бұрын
hey Pedro! could you please make a video on testing components? thanks.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Absolutely, will put that in the list!
@mayurghuge8846
@mayurghuge8846 3 жыл бұрын
Thank you.
@eliasimokhai
@eliasimokhai 3 жыл бұрын
You made it easy...thank you
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
You're welcome 😊
@benyaminyakobi3652
@benyaminyakobi3652 3 жыл бұрын
That's a pure gold knowledge!
@jordanmolina2351
@jordanmolina2351 3 жыл бұрын
really easy to understand and helpful thanks
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad to hear that!
@petarstrbad7191
@petarstrbad7191 3 жыл бұрын
Awesome video, and most useful so far, thank you man! :D
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad it helped!
@worldclasscode1847
@worldclasscode1847 2 жыл бұрын
Awesome! I also use this in every project :)
@sonnix31
@sonnix31 2 жыл бұрын
Excellent.
@ezbitz23
@ezbitz23 3 жыл бұрын
Thanks! Very useful content. Clear & concise.
@balanepalaiyathane9714
@balanepalaiyathane9714 2 жыл бұрын
Simple and very effective
@TheMyth2.9
@TheMyth2.9 2 жыл бұрын
Hey great tutorial. What's your opinion on this vs emotion?
@cyriljephery2662
@cyriljephery2662 Жыл бұрын
Thank you so much... definitely subscribing
@danielfarkas2689
@danielfarkas2689 3 жыл бұрын
Clean and understandable! Thank you!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Great to hear!
@johndoggett4657
@johndoggett4657 3 жыл бұрын
Good tutorial man. Loved it. Some of the concepts remind me of Sass.
@AntiPseudoPhilosopher
@AntiPseudoPhilosopher 3 жыл бұрын
Muito legal. Abriu muito a minha mente. Obrigado!
@willvonarend
@willvonarend 3 жыл бұрын
Hi, thanks for that. How would you approach using CSS variables with Styled Components? So having a '--primary-color' for example
@Deprecated446
@Deprecated446 3 жыл бұрын
Super helpful, thanks!
@thevloglife105
@thevloglife105 3 жыл бұрын
Very nice. But you need to upload video regarding node-sass scss compile to css.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you! I will take a look at that!
@thearong_5853
@thearong_5853 3 жыл бұрын
best video for beginner
@ayushdedhia25
@ayushdedhia25 3 жыл бұрын
So basically it follows the scss syntax to style our components... Right!? 😅😅
@stevenchung934
@stevenchung934 3 жыл бұрын
Super helpful, thanks man!
@rustamov_vlogs
@rustamov_vlogs 3 жыл бұрын
Amazing as always, thank you 😊
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you!
@securitytechtalk
@securitytechtalk 3 жыл бұрын
thnx sir this tutorial is very useful for me
@nwabuzorchukwuemekaobiora7361
@nwabuzorchukwuemekaobiora7361 3 жыл бұрын
This was super helpful.... 🔥🔥🔥🔥
@ThColinPereira
@ThColinPereira 3 жыл бұрын
Amazing video! It helped me a lot!!
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Glad you liked it!
@josephwong2832
@josephwong2832 3 жыл бұрын
great tutorial i subbed
@0xPanda1
@0xPanda1 3 жыл бұрын
very nice explanation , thank you very much
@indiedy_ghaze0968
@indiedy_ghaze0968 3 жыл бұрын
Is this what I use for to syle my apps on andriod or ios?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
You can use this for react native as well, so yes!
@indiedy_ghaze0968
@indiedy_ghaze0968 3 жыл бұрын
@@PedroTechnologies Thank you so much! Thank you!
@nikoletahroncova3342
@nikoletahroncova3342 3 жыл бұрын
very good video, thank you very much for sharing!
@Angels2welcome
@Angels2welcome 2 жыл бұрын
I loved the video you are such a good teacher! Can you make a video explaining how can I import fonts and use it in styled componets?
@jpcc1223
@jpcc1223 2 жыл бұрын
to use it, you need to import the font you want into your index.html file. After importing (for example, from google fonts), you can use it anywhere in you app
@DaveTradeFx_01
@DaveTradeFx_01 3 жыл бұрын
Can you make a video with data virtualization such as graph ... with react js
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Yes I was already planning on a video on data visualization, so it will come out soon!
@touseefahmad9794
@touseefahmad9794 3 жыл бұрын
which is better withStyles or Styled???
@worldclasscode1847
@worldclasscode1847 2 жыл бұрын
Styled :)
@chaswards
@chaswards 3 жыл бұрын
Great video! Very informative! How would you say styled components compares to using CSS modules?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you! I prefer styled-components becaause i believe it makes it easier for large companies to divide the work (ux/ui make the components and the frontend devs just use them). But both ways work well!
@chaswards
@chaswards 3 жыл бұрын
@@PedroTechnologies That makes sense, thanks!
@antrahagure5372
@antrahagure5372 Жыл бұрын
Thanks for video! Hiw to nest elopement in Styles ,like ul, li, a , hover ? In Sass nesting is easy but I couldn't understand how to do it with Stuled.
@sonamohialdin3376
@sonamohialdin3376 2 жыл бұрын
So good tutorial
@voncedrickbriones3995
@voncedrickbriones3995 3 жыл бұрын
Why styled-components extension didn't work on my project? Can you help me how to fix that?
@yugsoni2603
@yugsoni2603 3 жыл бұрын
thank you so much.
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Always welcome
@CH3THIN
@CH3THIN 3 жыл бұрын
This is really good
@karthikkhoday5555
@karthikkhoday5555 3 жыл бұрын
Can you tell me which extendion is used to show the file size next to import statements...
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Its called "import cost"
@karthikkhoday5555
@karthikkhoday5555 3 жыл бұрын
@@PedroTechnologies thanks 🙂
@Sameer.Trivedi
@Sameer.Trivedi Жыл бұрын
20:42 I was once pulling out my hair for that exact thing why do we even need the className gosh, its just to waste devs' time.
@Ram-ry2sd
@Ram-ry2sd 3 жыл бұрын
Very nice! it's really simple! Thank you! But what about animations, media queries and browser prefixes?
@AbdulRehman-vj7xu
@AbdulRehman-vj7xu Жыл бұрын
nice bro good to help me
@francescoPace27
@francescoPace27 2 жыл бұрын
Ty very usefull!
@PB72UK
@PB72UK 2 жыл бұрын
Nice
@worldclasscode1847
@worldclasscode1847 2 жыл бұрын
Love the YT clip ! :)
@irfanbaloch2884
@irfanbaloch2884 3 жыл бұрын
Awesome content
@barca6097
@barca6097 3 жыл бұрын
Thanks a lot ❤
@mohamedyoussef8835
@mohamedyoussef8835 3 жыл бұрын
Awesome ++++++++++++++ 🙂🙂
@rangabharath4253
@rangabharath4253 3 жыл бұрын
awesome as always :-)
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thanks again!
@leo-fv2nv
@leo-fv2nv 3 жыл бұрын
can u share code that could b more helpful and it saves time.......i am happy with ur teaching.
@live_emulator
@live_emulator Жыл бұрын
im really curious how responsiveness can apply to styled components or media querys.
@ampomahwinston3436
@ampomahwinston3436 3 жыл бұрын
How do you handle media query on styled component
@jakkenfive
@jakkenfive 3 жыл бұрын
Great video, Pedro how old are you?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thank you! I am 19!
@umerfarooq3121
@umerfarooq3121 3 жыл бұрын
Yeah Styled Components is awesome ;)
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
I love it! I use it in every single project!
@umerfarooq3121
@umerfarooq3121 3 жыл бұрын
@@PedroTechnologies That's great
@joicyjoy9658
@joicyjoy9658 Жыл бұрын
You rocked
@ashishthapa7768
@ashishthapa7768 3 жыл бұрын
Well I watched your login with session video but i am getting issue on redirecting to profile dashboard so...I wish u will make solution on redirecting to profile dashboard after login much appreciate till yet.Thank You:-)
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
In react you can have a promise after the fetch request and use the useHistory hook in react router dom to redirect. I have a video explaining this: kzbin.info/www/bejne/pZDClK2nja-np80
@kinoshan591
@kinoshan591 3 жыл бұрын
Nice bro
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Thanks!
@macos-brasil1814
@macos-brasil1814 3 жыл бұрын
Styled Component is the way people complicates styles using javascript instead of just understand how to make good CSS structures.
@rowdypiper6172
@rowdypiper6172 3 жыл бұрын
thank u
@botisonny
@botisonny 3 жыл бұрын
Perfect!
@briandacallos4234
@briandacallos4234 2 жыл бұрын
Definitely he has a blood of legendary bucky roberts.
@swiveiproduction9192
@swiveiproduction9192 3 жыл бұрын
would you recommend us to use styled components or CSS modules?
@PedroTechnologies
@PedroTechnologies 3 жыл бұрын
Styled Components!
@trered21
@trered21 Жыл бұрын
mine doesnt work help please. its not reading any of my commands from styled. it also doesnt auto fill elements so im assuming my package is bad but it is definitely installed
@dleonardo8755
@dleonardo8755 3 жыл бұрын
first line in 10:43 what is the green text? how i can see this in my code
Create A Custom Hook in React | React Hooks Tutorial
15:55
PedroTech
Рет қаралды 15 М.
Styled Components & React ПОЛНЫЙ КУРС
23:40
Ulbi TV
Рет қаралды 68 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 93 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,4 МЛН
Why you should look into these React component styling options!
27:17
Styled Components Crash Course & Project
48:23
Traversy Media
Рет қаралды 259 М.
7 ways to deal with CSS
6:23
Fireship
Рет қаралды 1,1 МЛН
Styled Components React Tutorial - The Best Way to Work With CSS
15:13
Monsterlessons Academy
Рет қаралды 4,8 М.
SPA-проект с темизацией на React и styled-components
1:58:11
Михаил Непомнящий
Рет қаралды 33 М.
Styled Components Is the Only Way To Do CSS
7:43
Engineer Man
Рет қаралды 22 М.
Testing In React Tutorial - Jest and React Testing Library
21:28
Styling React Components with CSS Modules
10:25
Telmo Sampaio
Рет қаралды 104 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 654 М.
Styled Components in React - Easiest Way
12:16
Code Bless You
Рет қаралды 4,1 М.