CSS Styles in React JS | Learn ReactJS

Поделиться
HTML-код
  • Опубликовано: 24 авг 2024

Комментарии • 39

  • @DaveGrayTeachesCode
    @DaveGrayTeachesCode  3 года назад +7

    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: ruclips.net/video/EfAl9bwzVZk/видео.html

  • @ahmad-murery
    @ahmad-murery 3 года назад +4

    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 года назад +1

      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

  • @min0234
    @min0234 Год назад +3

    I find this tutorial super helpful and better than some of the udemy courses out there. I appreciate your videos!

  • @himanshugaikwad4998
    @himanshugaikwad4998 2 года назад +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.

  • @gundoggydog
    @gundoggydog Год назад +1

    Dude great video, Thanks so much!

  • @redlense4
    @redlense4 Год назад +1

    Dave, I really like your tutorials. You explain everything thoroughly. Just subbed. Thanks!

  • @khaledbenshible2657
    @khaledbenshible2657 Год назад +1

    Excellent stuff ,I find this tutorial very helpful thank u indeed

  • @midouwebdev2224
    @midouwebdev2224 3 года назад +2

    Thanks Dave ! 🙏🏻

  • @ghostpieces2362
    @ghostpieces2362 2 года назад +1

    Super easy to follow your instruction. Thank you

  • @analistadesistemas
    @analistadesistemas Год назад +1

    Sir, what's the best CSS practices for a real project?

  • @anshultamrakar6210
    @anshultamrakar6210 3 года назад +1

    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. 🙏🚀

  • @mirlanurzhanov
    @mirlanurzhanov 2 года назад +1

    You are doing great job thanks!!! Keep going!

  • @roshanleembu3017
    @roshanleembu3017 3 года назад +1

    Thanks dave!! for the video.☺️🙏❤️

  • @chandruloganathan3725
    @chandruloganathan3725 2 года назад +1

    Thanks a lot

  • @amigaworkbench720
    @amigaworkbench720 2 года назад +1

    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.

  • @HaidaryarW
    @HaidaryarW 5 месяцев назад

    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?

  • @Rajakumar-yg4nc
    @Rajakumar-yg4nc 2 года назад +1

    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  2 года назад +1

      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 2 года назад

      @@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  2 года назад

      @@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 2 года назад

      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  2 года назад +1

      @@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: ruclips.net/video/_E96W6ivHng/видео.html

  • @TravinskiyVladislav
    @TravinskiyVladislav Год назад +2

    Top

  • @jamshidtashkent1976
    @jamshidtashkent1976 Год назад +1