A react hook of rotating specified element
Install rotate-react by using
npm i doodle-rotate-react
or
yarn add doodle-rotate-react
import useRotate from 'doodle-rotate-react'
....
const {target} = useRotate()
return (
<>
...
<div ref= {target} className='specified'>
</div>
...
<>
)