import React from "react";import { BrowserRouter as Router, Switch, Route, Link} from "react-router-dom";const routes = [
{path: "/",
exact: true,
sidebar: () =>
home!
,
main: () => Home
},
{path: "/bubblegum",
sidebar: () => bubblegum!
,
main: () => Bubblegum
},
{path: "/shoelaces",
sidebar: () => shoelaces!
,
main: () => Shoelaces
}];export default function SidebarExample() {
return (
{routes.map((route, index) => (
}/>))}
{routes.map((route, index) => (
} />
))}
);}