有没有办法将一个组件传递给另一个react组件?我想创建一个模型react组件并传入另一个react组件以嵌入该内容。
编辑:这是一个 reactJS 代码笔,说明了我正在尝试做的事情。http://codepen.io/aallbrig/pen/bEhjo
HTML
<div id="my-component">
    <p>Hi!</p>
</div>
ReactJS
/**@jsx React.DOM*/
var BasicTransclusion = React.createClass({
  render: function() {
    // Below 'Added title' should be the child content of <p>Hi!</p>
    return (
      <div>
        <p> Added title </p>
        {this.props.children}
      </div>
    )
  }
});
React.renderComponent(BasicTransclusion(), document.getElementById('my-component'));