这是一个创建于 3584 天前的主题,其中的信息可能已经有所发展或是发生改变。
1 条回复 • 2015-12-02 14:56:18 +08:00
 |
|
1
dong3580 2015-12-02 14:56:18 +08:00
已经解决。 看到有人收藏,给以后的童鞋回复一下:
React.render 复用组件最外层只能有一级节点,所以如果需要输入多个<TweetBox/>控件,则需要
React.render( <div><TweetBox /><TweetBox/></div>, document.getElementById("example1") );
用 div 或其它 包装成一级节点 就行了
|