A component styling lib.
npm install hstylejsx
import { style, styleObj } from "hstyle";
// Use string template form:
const className = style
;
// Use the returned class name later:
function MyList(props) {
return (
{props.children}
);
}
// Use object form:
const anotherClassName = styleObj({
'&': {
color: 'blue'
},
'@media all and (max-width: 600px)': {
'ul&>li::before': {
content: '"&&"'
}
}
});
``