react-style-object-to-css
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "react-style-object-to-css", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Convert react style with object to inline css(string).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,14 @@ | ||
# react-style-object-to-css | ||
# Summary | ||
Convert React style with object to pure inline css (string). | ||
# Example | ||
```js | ||
const reactToCSS = require('./index.js') | ||
const styleObj = { | ||
backgroundColor: 'blue', | ||
fontSize: 14 | ||
} | ||
// result === "background-color: blue; font-size: 14px;" | ||
const result = reactToCSS(styleObj) | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7176
15
6
181