refactor(react-graph): use func comp

This commit is contained in:
moklick
2019-08-19 13:31:31 +02:00
parent 0f74d78d28
commit 0bb555bf17
9 changed files with 18765 additions and 11304 deletions
+4 -4
View File
@@ -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'))
);