react-style-normalizer

React Style Normalizer

Usage no npm install needed!

<script type="module">
  import reactStyleNormalizer from 'https://cdn.skypack.dev/react-style-normalizer';
</script>

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