react-style-normalizer

React Style Normalizer


Keywords
style, normalize, prefix, react, browser
License
MIT
Install
npm install react-style-normalizer@1.2.8

Documentation

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.

License

MIT