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
-1
View File
@@ -18,7 +18,6 @@ import { useKeyPress } from '../hooks';
const d3ZoomInstance = d3Zoom.zoom().scaleExtent([0.5, 2]);
const GraphView = memo((props) => {
const zoomPane = useRef(null);
const { state, dispatch } = useContext(GraphContext);