I quite like the inline CSS pattern in React and decided to use it.
However, you can\'t use the :hover and similar selectors. So what\'s the best way to
:hover
Checkout Typestyle if you are using React with Typescript.
Below is a sample code for :hover
import {style} from "typestyle"; /** convert a style object to a CSS class name */ const niceColors = style({ transition: 'color .2s', color: 'blue', $nest: { '&:hover': { color: 'red' } } }); Hello world