0.0.10 • Published 6 years ago

use-css v0.0.10

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

 

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

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1-security

6 years ago