✨ convert style object to string. eg. { fontSize: 12 } => font-size: 12px
npm install @minko-fe/style-object-to-string> convert style object to string
``bash`
pnpm add @minko-fe/style-object-to-string
`bash`
npm add @minko-fe/style-object-to-string
`typescript
import { styleObjectToString } from '@minko-fe/style-object-to-string'
styleObjectToString({
fontSize: 14,
backgroundColor: '#fff',
}) // 'font-size:14px;background-color:#fff'
``
Source code from react