Styling a React button component with Radium

Phil Holden
InstructorPhil Holden

Share this video with your friends

Send Tweet

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.