react-style-normalizer
v1.2.8
Published
React Style Normalizer
Downloads
32,932
Maintainers
Readme
react-style-normalizer
Vendor prefixing and style normalization for React
Prefixes both style names and values, when needed.
Install
$ npm i react-style-normalizer --save
Usage
var normalize = require('react-style-normalizer')
var style = normalize({
userSelect: 'none',// in chrome/safari it becomes WebkitUserSelect: 'none'
display: 'flex' //on safari it becomes display: '-webkit-flex'
})
React.render(<div style={style} />, mountNode)
Contributing
Use Github issues for feature requests and bug reports.
We actively welcome pull requests.