import Breadcrumb from '..';
import React from 'react';
import ReactDOM from 'react-dom';
import { HashRouter, Link, Route, Switch } from 'react-router-dom';
ReactDOM.render(
  <HashRouter>
    <Breadcrumb separator="/">
      <Breadcrumb.Item>
        <Link to="/">Home</Link>
      </Breadcrumb.Item>
      <Breadcrumb.Item>
        <Link to="/categories">All Categories</Link>
      </Breadcrumb.Item>
      <Breadcrumb.Item>
        <Link to="/categories/shirts">Shirts</Link>
      </Breadcrumb.Item>
      <Breadcrumb.Item>Shirt 78，999</Breadcrumb.Item>
    </Breadcrumb>
    <Switch>
      <Route path="/categories/shirts" render={() => <span>Shirts</span>} />
      <Route path="/categories" render={() => <span>All Categories</span>} />
      <Route path="/" render={() => <span>Home</span>} />
    </Switch>
  </HashRouter>,
  document.getElementById('collapse-demo-5'),
);
