kadira_react-layout.js未捕获的TypeError:React.render不是函数

时间:2017-04-12 11:42:14

标签: reactjs meteor react-native react-router meteor-accounts

我现在正在尝试Meteor和React。当我运行应用程序时,它会显示一个空白页面。我检查了控制台,发现错误。我不知道这是不是它的原因。请帮助。

Layout = React.createClass({
        render(){
            return(
                <div className="wrapper">
                    <div className="box">
                        <div className="srow row-offcanvas row-offcanvas-left push-down-50">
                            NavBar
                            {this.props.sidebar}
                            {this.props.content}
                        </div>
                    </div>
                </div>
            )
        }
    });

控制台错误日志

modules.js?hash=a9c8f38…:11069Warning: ReactTestUtils has been moved to react-dom/test-utils. Update references to remove this warning.printWarning @ modules.js?hash=a9c8f38…:11069warning @ modules.js?hash=a9c8f38…:11093meteorInstall.node_modules.react-addons-test-utils.index.js @ modules.js?hash=a9c8f38…:31588fileEvaluate @ modules-runtime.js?hash=2b888cb…:207require @ modules-runtime.js?hash=2b888cb…:130meteorInstall.node_modules.meteor.react-runtime.react-runtime.js @ react-runtime.js:38fileEvaluate @ modules-runtime.js?hash=2b888cb…:207require @ modules-runtime.js?hash=2b888cb…:130(anonymous function) @ react-runtime.js?hash=be87be9…:115(anonymous function) @ react-runtime.js?hash=be87be9…:127
kadira_react-layout.js?hash=c418396…:76 Uncaught TypeError: React.render is not a function(anonymous function) @ kadira_react-layout.js?hash=c418396…:76(anonymous function) @ kadira_react-layout.js?hash=c418396…:90

0 个答案:

没有答案