1.0.2 • Published 1 year ago

react-use-stylesheet-hook v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

react-use-stylesheet-hook

Install:

npm i react-use-stylesheet-hook

Example:

import useStylesheet from 'react-use-stylesheet-hook'
function MyComponenet(){
  useStyleSheet('body {background-color:red;}')
}

Everytime the component will be mounted the body background will be changed to red. On unmount the color will be back to normal.

1.0.2

1 year ago

1.0.1

1 year ago