Use the style function to create CSS classes
masterImport the style function from typestyle. Pass a style object to style() to convert it into a CSS class name. You can then apply this class name to elements in any framework (e.g., React or Angular).
/** Import */
import {style} from "typestyle";
/** convert a style object to a CSS class name */
const className = style({color: 'red'});
/** Use the class name in a framework of choice */
// e.g. React
const MyButton =
({onClick,children}) => <button className={className} onClick={onClick}>
{children}
</button>