React js how to add CSS styles 🎨

  Рет қаралды 20,590

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 7 ай бұрын
// ---------- 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 7 ай бұрын
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
@nemesisxl6736
@nemesisxl6736 7 ай бұрын
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 7 ай бұрын
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 ❤
@Kersevtech
@Kersevtech 7 ай бұрын
Thank you, You been helping us a lot with your tutorials. You are the best Bro!
@pkpkpkpkpk669
@pkpkpkpkpk669 Ай бұрын
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!
@TheWebboxchannel
@TheWebboxchannel 4 ай бұрын
To me this was the most helpful video on this topic. Informative, consise, and quick explanations. Thank you so much ❤
@vidhyasagargslv1766
@vidhyasagargslv1766 7 ай бұрын
waiting for this video .... hope next video comes fast
@KosaQDev
@KosaQDev 7 ай бұрын
Thank You So Much For Your Videos!
@balusubramaniam2335
@balusubramaniam2335 3 ай бұрын
very informative nice thank you for the video🙂
@Smurfis
@Smurfis 7 ай бұрын
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
@fenix2598
@fenix2598 7 ай бұрын
wow nice
@hunin27
@hunin27 7 ай бұрын
Now that I learned all of the ways to put CSS, I can say that I also prefer modules!
@shivanshuhere
@shivanshuhere 6 ай бұрын
noice 😁
@user-vv2sv5sl9q
@user-vv2sv5sl9q 2 ай бұрын
great pro
@razelfluff7125
@razelfluff7125 7 ай бұрын
Your videos are so helpful! Can you make a video about luau?
@nazmulhridoy
@nazmulhridoy 7 ай бұрын
😍
@nikhiltiwari7371
@nikhiltiwari7371 7 ай бұрын
Please make videos about front end and backend frameworks
@ChromeandClean
@ChromeandClean 7 ай бұрын
Hey bro , have you ever thought about doing MATLAB
@Amfrdluci-iz2yl
@Amfrdluci-iz2yl 2 ай бұрын
Upload tutorial for tailwind css
@Delicatamente
@Delicatamente 2 ай бұрын
huge thanks!
@bryanalcantara7021
@bryanalcantara7021 7 ай бұрын
fullcourse of react js please
@AIZEN155
@AIZEN155 7 ай бұрын
Although I know React, I enjoy the videos
PROPS in React explained 📧
12:09
Bro Code
Рет қаралды 61 М.
Make position absolute work with you, not against you
10:31
Kevin Powell
Рет қаралды 24 М.
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 57 МЛН
IS THIS REAL FOOD OR NOT?🤔 PIKACHU AND SONIC CONFUSE THE CAT! 😺🍫
00:41
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 92 МЛН
.NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
IAmTimCorey
Рет қаралды 539 М.
React tutorial for beginners ⚛️
20:27
Bro Code
Рет қаралды 152 М.
7 ways to deal with CSS
6:23
Fireship
Рет қаралды 1,1 МЛН
Python Classes Tutorial #5 | Advanced Concepts
10:08
Aikonic
Рет қаралды 7 М.
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 501 М.
Learn CSS flexbox in 10 minutes! 💪
10:01
Bro Code
Рет қаралды 116 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 560 М.
What are JavaScript PROMISES? 🤞
12:37
Bro Code
Рет қаралды 40 М.
The new CSS pseudo-classes explained - :is() :where() :has()
13:50
Kevin Powell
Рет қаралды 131 М.