Skip to content

Commit

Permalink
Passing through className and style from props
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Feb 16, 2016
1 parent 1182401 commit 135805c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/DOMify.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,12 @@ function transform (obj, fromRecur, comma) {

var DOMify = React.createClass({
render () {
return transform(this.props.value);
}
return (
<div className={this.props.className} style={this.props.style}>
{transform(this.props.value)}
</div>
);
},
});

module.exports = DOMify;

0 comments on commit 135805c

Please sign in to comment.