-
-
Save neoney/a7827eec65c5ffad1df3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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