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
9fa5c6ab05
commit
8a73531374
3 changed files with 4 additions and 7 deletions
|
|
@ -41,6 +41,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"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 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'));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue