0.0.2 • Published 9 years ago

react-style-to-css v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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

0.0.2

9 years ago

0.0.1

9 years ago