From 8a735313741973f6640903149a42151f0de7c19d Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 29 Aug 2018 00:03:26 +0200 Subject: [PATCH] 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 --- package.json | 3 ++- src/index.es6 | 3 ++- webpack.config.js | 5 ----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 3c0c054..a8a14d1 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ }, "dependencies": { "node-sass": "^4.9.0", - "react-lite": "0.15.30" + "react": "^16.4.2", + "react-dom": "^16.4.2" } } diff --git a/src/index.es6 b/src/index.es6 index e444702..cb3ca05 100644 --- a/src/index.es6 +++ b/src/index.es6 @@ -18,8 +18,9 @@ */ import React from 'react'; +import ReactDOM from 'react-dom'; import { Application } from './app.jsx'; document.addEventListener("DOMContentLoaded", function () { - React.render(React.createElement(Application, {}), document.getElementById('app')); + ReactDOM.render(React.createElement(Application, {}), document.getElementById('app')); }); diff --git a/webpack.config.js b/webpack.config.js index ca3338f..fce4863 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -101,11 +101,6 @@ module.exports = { externals: externals, output: output, devtool: "source-map", - resolve: { - alias: { - "react$": path.resolve(nodedir, "react-lite/dist/react-lite.js") - } - }, module: { rules: [ {