react-style-to-css

react-style code for converting styles to css strings

Very old and unmaintained
Last updated 5 years ago by micimize .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-style-to-css 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.2                                ...           latest (5 years ago)

2 Versions

  • 0.0.2 [deprecated]           ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |