CSS Styles in React JS | Learn ReactJS

  Рет қаралды 38,280

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 39
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
This short tutorial presents several ways to apply CSS styles to your React components. Applying CSS to JSX can be a little different than applying CSS to HTML. We'll explore applying individual stylesheets per React component, applying one larger stylesheet for the full application, appyling inline CSS in JSX, and look at a popular package for styling components. If you are new to Javascript, I suggest starting with my full 8 hour Javascript tutorial here: kzbin.info/www/bejne/e5eknWyYrN-JkM0
@himanshugaikwad4998
@himanshugaikwad4998 2 жыл бұрын
This is my 4th video in a row, and im liking ur every videos as i go along. Thnx making for this premium quality content for free, im really loving this series. I have shared it to my friends too. u r amazing Dave, keep up the good works.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you, Himanshu! 🙏🙏
@redlense4
@redlense4 Жыл бұрын
Dave, I really like your tutorials. You explain everything thoroughly. Just subbed. Thanks!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Thank you!
@ahmad-murery
@ahmad-murery 3 жыл бұрын
I always appreciate short videos which I can easily find time to watch and get exactly what you're looking for and most importantly require less power (at least for me). There will be a part 2 for CSS in React JS if I'm not mistaken, Thanks Dave,
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thanks Ahmad. Yes, not too much needed to introduce CSS styles for JSX. This should get beginners going but more could be added in the future. 😃
@ahmad-murery
@ahmad-murery 3 жыл бұрын
@@DaveGrayTeachesCode Sure, I hope things get better for everyone so we can reach the future safely
@khaledbenshible2657
@khaledbenshible2657 Жыл бұрын
Excellent stuff ,I find this tutorial very helpful thank u indeed
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Great to hear!
@min0234
@min0234 2 жыл бұрын
I find this tutorial super helpful and better than some of the udemy courses out there. I appreciate your videos!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Glad you like them!
@ghostpieces2362
@ghostpieces2362 3 жыл бұрын
Super easy to follow your instruction. Thank you
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
You're welcome! 🙏
@mirlanurzhanov
@mirlanurzhanov 2 жыл бұрын
You are doing great job thanks!!! Keep going!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you! 💯
@anshultamrakar6210
@anshultamrakar6210 3 жыл бұрын
hey Dave I am currently following your JS course and find it really helpful, Thanks : )
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
That's great! Thanks for the feedback and for following my channel. 🙏🚀
@roshanleembu3017
@roshanleembu3017 3 жыл бұрын
Thanks dave!! for the video.☺️🙏❤️
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
You're welcome! 🙏
@midouwebdev2224
@midouwebdev2224 3 жыл бұрын
Thanks Dave ! 🙏🏻
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
You're welcome! 💯
@analistadesistemas
@analistadesistemas Жыл бұрын
Sir, what's the best CSS practices for a real project?
@jecajSudbine
@jecajSudbine 2 жыл бұрын
Excellent stuff! If you are developer and you want to learn JS/React, This is the channel for you! Btw, Dave can you make tutorial on how to work with Rsuite and React.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thanks for the suggestion - I'll check that out!
@chandruloganathan3725
@chandruloganathan3725 2 жыл бұрын
Thanks a lot
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome!
@Rajakumar-yg4nc
@Rajakumar-yg4nc 3 жыл бұрын
Hi Dave, sometimes we declare a variable inside the function scope (just above the return keyword ) but other time we declare outside of the return (just below the import statement) ,what's the difference and how to know where to declare a variable ? time stamp-3:23
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thanks for asking Raja. I need to see a specific example of where you are declaring a variable just below the import statements and outside of the functional component? The example you linked to shows the headerStyle variable declaration within the functional Header component and above the return statement. This example shows where variables would typically be declared.
@Rajakumar-yg4nc
@Rajakumar-yg4nc 3 жыл бұрын
@@DaveGrayTeachesCode thanks for replying, we do declare variable outside of the component , I have doubt that how to know when to declare outside or when to declare inside
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
@@Rajakumar-yg4nc Thank you. I understand your question. I do not see where a variable is declared outside of a component. Can you give me an example? The example you provided shows declaring the variable inside the component. The import statements in App.js are outside the component.
@Rajakumar-yg4nc
@Rajakumar-yg4nc 3 жыл бұрын
Thanks for replying, my question is not relating to the example you took I'm the video , it's a general question that in any .js file in react we can declare variable outside of function or inside too , then how to know where to declare a variable ?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
@@Rajakumar-yg4nc thank you for helping me understand your question. As you can see from my tutorial, I do not declare variables outside of the functional components. If you do, you are creating a global variable. In general, it is best to not do that and keep your declarations inside the scope of the function. This answer applies to not only React, but also to all Javascript. I have a tutorial about understanding scope that may help explain further: kzbin.info/www/bejne/lXacZ4psntt7pMk
@HaidaryarW
@HaidaryarW 10 ай бұрын
Thank you for the great tutorials, Dave. I want to add different CSS stylesheets for different component files, but React applies the style from the last added CSS file for all its component files. Besides using the module method (style.module.css) is there another workaround for this?
@TravinskiyVladislav
@TravinskiyVladislav 2 жыл бұрын
Top
@jamshidtashkent1976
@jamshidtashkent1976 2 жыл бұрын
@gundoggydog
@gundoggydog Жыл бұрын
Dude great video, Thanks so much!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Glad you liked it!
React Click Events | Learn ReactJS
9:18
Dave Gray
Рет қаралды 38 М.
React JS Functional Components | Learn ReactJS
10:48
Dave Gray
Рет қаралды 45 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Learn CSS Flexbox in 20 Minutes (Course)
20:37
Coding2GO
Рет қаралды 334 М.
React JS Props and Prop Drilling | Learn ReactJS
25:54
Dave Gray
Рет қаралды 35 М.
Styling React Components with CSS Modules
10:25
Telmo Sampaio
Рет қаралды 106 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 498 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 916 М.
Learn CSS transformations in 9 minutes! 🔄
9:01
Bro Code
Рет қаралды 34 М.
React useState Hook | Learn ReactJS
12:07
Dave Gray
Рет қаралды 31 М.
React JS Explained In 10 Minutes
10:00
Dennis Ivy
Рет қаралды 364 М.
10 CSS PRO Tips and Tricks you NEED to know
9:00
Coding2GO
Рет қаралды 120 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН