Use full React instead of react-lite

This is the direction we are going in Cockpit, as react-lite falls
behind with API development and debuggability.

Closes #43
This commit is contained in:
Martin Pitt 2018-08-29 00:03:26 +02:00 committed by Lars Karlitski
parent 9fa5c6ab05
commit 8a73531374
3 changed files with 4 additions and 7 deletions

View file

@ -41,6 +41,7 @@
}, },
"dependencies": { "dependencies": {
"node-sass": "^4.9.0", "node-sass": "^4.9.0",
"react-lite": "0.15.30" "react": "^16.4.2",
"react-dom": "^16.4.2"
} }
} }

View file

@ -18,8 +18,9 @@
*/ */
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom';
import { Application } from './app.jsx'; import { Application } from './app.jsx';
document.addEventListener("DOMContentLoaded", function () { document.addEventListener("DOMContentLoaded", function () {
React.render(React.createElement(Application, {}), document.getElementById('app')); ReactDOM.render(React.createElement(Application, {}), document.getElementById('app'));
}); });

View file

@ -101,11 +101,6 @@ module.exports = {
externals: externals, externals: externals,
output: output, output: output,
devtool: "source-map", devtool: "source-map",
resolve: {
alias: {
"react$": path.resolve(nodedir, "react-lite/dist/react-lite.js")
}
},
module: { module: {
rules: [ rules: [
{ {