react-style-object-to-css
1.1.2 • Public • Published
Convert React style defined as an object to pure inline css (string).
npm install react-style-object-to-css
const reactToCSS = require('react-style-object-to-css')
const styleObj = {
backgroundColor: 'blue',
fontSize: 14
}
// result === "background-color: blue; font-size: 14px;"
const result = reactToCSS(styleObj)
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.1.2 | 15,553 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.1.2 | 15,553 | |
1.1.1 | 10 | |
1.1.0 | 0 | |
1.0.0 | 0 | |
Package Sidebar
Install
npm i react-style-object-to-css
Weekly Downloads