refactor(elements): render only visible elements
This commit is contained in:
@@ -5,6 +5,7 @@ import { BrowserRouter as Router, Route, Switch, withRouter } from 'react-router
|
||||
import Basic from './Basic';
|
||||
import UpdateNode from './UpdateNode';
|
||||
import Stress from './Stress';
|
||||
import CustomNode from './CustomNode';
|
||||
|
||||
import './index.css';
|
||||
|
||||
@@ -21,6 +22,10 @@ const routes = [
|
||||
path: '/stress',
|
||||
component: Stress,
|
||||
},
|
||||
{
|
||||
path: '/custom-node',
|
||||
component: CustomNode,
|
||||
},
|
||||
];
|
||||
|
||||
const Header = withRouter(({ history, location }) => {
|
||||
|
||||
Reference in New Issue
Block a user