The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Radium: Updating Button Styles via Props

Radium: Updating Button Styles via Props

0:47
In a CSS library like Bootstrap we can set a button's style to be "primary" or "secondary" by appending classes. For React components we want to be able to do this via props. Radium enables this by composing styles via an array. This mimicks the cascade of CSS.
Watch this lesson now
Avatar
egghead.io

In a CSS library like Bootstrap we can set a button's style to be "primary" or "secondary" by appending classes. For React components we want to be able to do this via props. Radium enables this by composing styles via an array. This mimicks the cascade of CSS.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?