Skip to content

Instantly share code, notes, and snippets.

@petehunt
Created December 28, 2014 08:01
Show Gist options
  • Save petehunt/63096ce46439a686548e to your computer and use it in GitHub Desktop.
Save petehunt/63096ce46439a686548e to your computer and use it in GitHub Desktop.
var Style = React.createClass({
render: function() {
var style = assign({}, this.props);
delete style.children;
return React.createElement(
'div',
{style: style, children: this.props.children}
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment