Scoped styles

February 6, 2018 ยท View on GitHub

Simply write CSS declarations without class names, your components will be scoped and assigned a class name automatically.

const template = (props) => ({
    color: 'red',
    background: props.theme.background,
});