1.1.2 • Published 6 years ago

react-style-object-to-css v1.1.2

Weekly downloads
1,136
License
MIT
Repository
github
Last release
6 years ago

Summary

Convert React style defined as an object to pure inline css (string).

Installation

	npm install react-style-object-to-css

Example

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)