
CSS in JS ๐ ๐ฉโ๐ค๐๐ (Drama Free!)
Syntax - Tasty Web Development Treats
00:00
JavaScript Styled Components
You can pass props to your component, meaning that like you might have a button called take my money and then it just has a sale attribute. You can do a little turn say it for me, ternary ternary operator in there to check if there is like props dot sale. And so like making those decisions, I found to be an interesting exercise in how you think about your components. It has led to a lot more clarity in how I think about scoping these things.
Play episode from 26:58
Transcript


