Sending Component Props

    Keep in mind anywhere a component is used a property can be sent to it. For example, the code from the previous section demonstrates the use of the Badge component and name property from within the BadgeList component.

    1. var Badge = React.createClass({
    2. return <div>{this.props.name}</div>;
    3. }
    4. var BadgeList = React.createClass({
    5. render: function() {
    6. return (<div>
    7. </div>);
    8. }
    9. });
    10. ReactDOM.render(<BadgeList />, document.getElementById('app'));

    Notes