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

Styling a React button component with Radium

Styling a React button component with Radium

1:29
React's inline styles allow components to stand on their own by not requiring any external CSS. However HTML's style attributes don't support pseudo selectors like `:hover` and `:active`. By using Radium to listen to mouse events we can restore `:hover` and `:active` selectors to inline styles.
Watch this lesson now
Avatar
egghead.io

React's inline styles allow components to stand on their own by not requiring any external CSS. However HTML's style attributes don't support pseudo selectors like :hover and :active. By using Radium to listen to mouse events we can restore :hover and :active selectors to inline styles.

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