use-css
v0.0.10
Published
Silly React hook for CSS
Downloads
6
Readme
install
npm install use-css
usage
import useCSS from 'use-css'
function Oopsy(props) {
const className = useCSS(`
font-size: 21px;
font-style: italic;
color: ${props.color};
&:hover {
font-weight: bold;
}
`)
return <div className={className}>because why not?</div>
}
render(<Oopsy color="green" />)
but why?
funsies
like it?
:star: this repo
license
MIT © siddharthkp