chore(examples): add layouting with new api

This commit is contained in:
moklick
2021-11-02 12:52:24 +01:00
parent 6e3ff4e849
commit 65991de037
8 changed files with 120 additions and 94 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
import React, { ChangeEvent } from 'react';
import { ChangeEvent } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Route, Switch, withRouter } from 'react-router-dom';
@@ -7,6 +7,7 @@ import UpdateNode from './UpdateNode';
import Stress from './Stress';
import CustomNode from './CustomNode';
import FloatingEdges from './FloatingEdges';
import Layouting from './Layouting';
import './index.css';
@@ -31,6 +32,10 @@ const routes = [
path: '/floating-edges',
component: FloatingEdges,
},
{
path: '/layouting',
component: Layouting,
},
];
const Header = withRouter(({ history, location }) => {