JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11250
  • Score
    100M100P100Q179494F
  • License MIT

React Style Normalizer

Package Exports

  • react-style-normalizer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-style-normalizer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.

License

MIT