Radium: Updating Button Styles via Props

Phil Holden
InstructorPhil Holden

Share this video with your friends

Send Tweet

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.