Skip to content

Instantly share code, notes, and snippets.

@elierotenberg
Created August 2, 2014 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elierotenberg/77b7dc59a757374185e4 to your computer and use it in GitHub Desktop.
Save elierotenberg/77b7dc59a757374185e4 to your computer and use it in GitHub Desktop.
SimpleCSS.jsx
/** @jsx React.DOM */
var React = require("react");
var fromCSS = require("react-css").fromCSS;
var myStyle = fromCSS("{" +
"transform: rotate(20deg);" +
"background-color: red;" +
"width: 100px;" +
"margin: 50px;" +
"}");
var SimpleCSS = React.createClass({
render: function render() {
return (
<div style={myStyle}>Simple CSS Transformation.</div>
);
}
});
module.exports = SimpleCSS;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment