This package has been deprecated

Author message:

Very old and unmaintained

react-style-to-css

0.0.2 • Public • Published

React Style to CSS (string)

A heavily cropped, simplified version of the style to css string logic in react-style. Used by react-static-jsx.

example:

var React = require('react')
var styleToCssString = require('react-style-to-css')

var styles = {
    color: 'red',
    backgroundColor: 'white'
};

class HelloWorld extends React.Component{
  render() {
    return <div style={styleToCssString(styles)}>Hello, world!</div>
  }
}

License

MIT

/react-style-to-css/

    Package Sidebar

    Install

    npm i react-style-to-css

    Weekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • micimize