React js how to add CSS styles 🎨

  Рет қаралды 18,022

Bro Code

Bro Code

Күн бұрын

00:00:00 intro
00:00:20 Button component
00:01:32 external CSS
00:03:25 modular CSS
00:05:51 inline CSS
00:07:30 conclusion
// HOW TO STYLE REACT COMPONENTS WITH CSS
// (not including external frameworks or preprocessors)
// 1. EXTERNAL
// 2. MODULES
// 3. INLINE
#reactjs #javascript #tutorial

Пікірлер: 24
@BroCodez
@BroCodez 6 ай бұрын
// ---------- CSS STYLE SHEET ---------- .button{ background-color: hsl(200, 100%, 50%); color: white; padding: 10px 20px; border-radius: 5px; border: none; cursor: pointer; } // ---------- EXTERNAL ---------- function Button(){ return(Click me); } export default Button // ---------- MODULES ---------- import styles from './Button.module.css' function Button(){ return(Click me); } export default Button // ---------- INLINE ---------- function Button(){ const styles = { backgroundColor: "hsl(200, 100%, 50%)", color: "white", padding: "10px 20px", borderRadius: "5px", border: "none", cursor: "pointer", } return(Click me); } export default Button
@JourneyNomoneyinvested
@JourneyNomoneyinvested 6 ай бұрын
Bro I appreciate you alot, I have one request ONlY one , I really want to see Laravel frame Work with php full course, and creating management system project with mysql laraval html and css This full course would blow the internet as it's the mostly used frame work for developing web system. Make it the next Course in the next days please
@pkpkpkpkpk669
@pkpkpkpkpk669 24 күн бұрын
Thank you for this! One thing I would like to point out for modular css, when you have a multi word class name (card-title, card-text, etc) you must use bracket notation to use the styles: TEXT If you try to access with {styles.card-text} you will get an error. Hope this helps!
@nemesisxl6736
@nemesisxl6736 6 ай бұрын
I just finished your 8 hours JavaScript course and JavaScript MDN, and I started to learn React, this course came at the right time! I hope you can make React tutorials more frequently though.
@hunin27
@hunin27 6 ай бұрын
Hey, thanks bro! Again, it may seem like nothing, but what you are doing is amazing, especially for someone who is learning React like me. Thanks for everything bro. Lots of love from Italy ❤
@TheWebboxchannel
@TheWebboxchannel 3 ай бұрын
To me this was the most helpful video on this topic. Informative, consise, and quick explanations. Thank you so much ❤
@Kersevtech
@Kersevtech 6 ай бұрын
Thank you, You been helping us a lot with your tutorials. You are the best Bro!
@balusubramaniam2335
@balusubramaniam2335 2 ай бұрын
very informative nice thank you for the video🙂
@vidhyasagargslv1766
@vidhyasagargslv1766 6 ай бұрын
waiting for this video .... hope next video comes fast
@Smurfis
@Smurfis 6 ай бұрын
Thanks for these tutorials me and my brother are trying to do a react project and I feel totally lost when I felt comfortable with html css and js
@KosaQDev
@KosaQDev 6 ай бұрын
Thank You So Much For Your Videos!
@hunin27
@hunin27 6 ай бұрын
Now that I learned all of the ways to put CSS, I can say that I also prefer modules!
@razelfluff7125
@razelfluff7125 6 ай бұрын
Your videos are so helpful! Can you make a video about luau?
@fenix2598
@fenix2598 6 ай бұрын
wow nice
@user-vv2sv5sl9q
@user-vv2sv5sl9q Ай бұрын
great pro
@nikhiltiwari7371
@nikhiltiwari7371 6 ай бұрын
Please make videos about front end and backend frameworks
@ChromeandClean
@ChromeandClean 6 ай бұрын
Hey bro , have you ever thought about doing MATLAB
@Amfrdluci-iz2yl
@Amfrdluci-iz2yl Ай бұрын
Upload tutorial for tailwind css
@nazmulhridoy
@nazmulhridoy 6 ай бұрын
😍
@shivanshuhere
@shivanshuhere 5 ай бұрын
noice 😁
@Delicatamente
@Delicatamente Ай бұрын
huge thanks!
@bryanalcantara7021
@bryanalcantara7021 6 ай бұрын
fullcourse of react js please
@AIZEN155
@AIZEN155 6 ай бұрын
Although I know React, I enjoy the videos
PROPS in React explained 📧
12:09
Bro Code
Рет қаралды 55 М.
How to CONDITIONAL RENDER in React ❓
10:15
Bro Code
Рет қаралды 21 М.
小路飞姐姐居然让路飞小路飞都消失了#海贼王  #路飞
00:47
路飞与唐舞桐
Рет қаралды 92 МЛН
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Рет қаралды 139 МЛН
ХОТЯ БЫ КИНОДА 2 - официальный фильм
1:35:34
ХОТЯ БЫ В КИНО
Рет қаралды 2 МЛН
Learn CSS flexbox in 10 minutes! 💪
10:01
Bro Code
Рет қаралды 103 М.
CSS Basics in 9 Minutes
8:42
Learndev
Рет қаралды 578
React useContext() hook introduction 🧗‍♂️
11:37
Bro Code
Рет қаралды 13 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 750 М.
Learn React Click Events 👆
12:21
Bro Code
Рет қаралды 13 М.
Learn Flexbox CSS in 8 minutes
8:16
Slaying The Dragon
Рет қаралды 1,3 МЛН
The problems with viewport units
13:23
Kevin Powell
Рет қаралды 351 М.
React useEffect() hook introduction 🌟
19:52
Bro Code
Рет қаралды 13 М.