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:
parent
73ce502b16
commit
5dd6801058
3 changed files with 4 additions and 7 deletions
|
|
@ -40,6 +40,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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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'));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -112,11 +112,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: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue