refactor(react-graph): use func comp
This commit is contained in:
+10433
-5602
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -212,7 +212,7 @@ var parent = module.bundle.parent;
|
||||
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
|
||||
var hostname = "" || location.hostname;
|
||||
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
||||
var ws = new WebSocket(protocol + '://' + hostname + ':' + "61901" + '/');
|
||||
var ws = new WebSocket(protocol + '://' + hostname + ':' + "56024" + '/');
|
||||
|
||||
ws.onmessage = function (event) {
|
||||
checkedAssets = {};
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { render } from 'react-dom';
|
||||
import { unstable_trace as trace } from "scheduler/tracing";
|
||||
|
||||
import SimpleGraph from './SimpleGraph';
|
||||
|
||||
ReactDOM.render(
|
||||
<SimpleGraph />,
|
||||
document.getElementById('root')
|
||||
trace('initial render', performance.now(), () =>
|
||||
render(<SimpleGraph />, document.getElementById('root'))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user