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

React CSS in JavaScript with Radium

React CSS in JavaScript with Radium

3:33
Radium is a set of mixins for managing styles in React components, allowing you to use CSS features that aren’t possible with inline styles.
Watch this lesson now
Avatar
egghead.io

Radium is a set of mixins for managing styles in React components, allowing you to use CSS features that aren’t possible with inline styles.

Avatar
Benjamin

React is moving away from mixins in ES6 classes. So, what would be an alternative to use radium with ES6?

Avatar
Rodrigo

I'm trying to run the example but I'm getting errors:

this.getBrowserStateEvents is not a function
this.buildStyles is not a function

Avatar
Joseph

There have been some updates to Radium that we'll cover soon. This JSBin will be updated to use <script src="https://rawgit.com/FormidableLabs/radium/v0.10.0/dist/radium.js"></script> which will resolve the issue you are seeing.

In reply to Rodrigo
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?