on f130223 help sign in
bridge/src/components/Router.js
13 lines 344 B history raw
1import React from 'react';
3import { useHistory } from 'store/history';
4import router from 'lib/router';
6// router is just a component that renders a specific view
7// depending on the lastest route in the history
8export default function Router() {
9 const history = useHistory();
10 const Route = router(history.peek());
12 return <Route />;