Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react inject component into another component

var component = React.createClass({
    render: function () {
        return (
            <div>
                .. many elements here ..
                {this.props.children}
            </div>
        );
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #inject #component #component
ADD COMMENT
Topic
Name
1+4 =