我有错误未捕获的ReferenceError:未定义ReactDOM。我查看了开发人员工具firefox。
bundle.js错误所在代码的一部分。
var React = __webpack_require__(1);
var ReactDom = __webpack_require__(158);
ReactDOM.render(React.createElement(
'h1',
null,
'Boilerplate app!'
), docucument.getElementById('app'));
的package.json
{
"name": "boilerplate",
"version": "1.0.0",
"description": "Simple Vova REact app",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"Vlad",
"Hacki"
],
"author": "\"MIT\"",
"license": "ISC",
"dependencies": {
"express": "^4.15.2",
"react": "^0.14.7",
"react-dom": "^0.14.7"
},
"devDependencies": {
"babel-core": "^6.5.1",
"babel-loader": "^6.2.2",
"babel-preset-es2015": "^6.5.0",
"babel-preset-react": "^6.5.0",
"webpack": "^1.12.13"
}
}