react-style-normalizer

1.2.8 • Public • Published

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

Package Sidebar

Install

npm i react-style-normalizer

Weekly Downloads

6,335

Version

1.2.8

License

MIT

Last publish

Collaborators

  • radubrehar