UNPKG

347 BJavaScriptView Raw
1// @flow
2
3import React from "react";
4
5import { Router } from "react-router";
6import { createMemoryHistory } from "history";
7
8type Props = {
9 children: any,
10};
11
12const history = createMemoryHistory();
13
14export const ZappDomRouter = ({ children, ...otherProps }: Props) => (
15 <Router history={history} {...otherProps}>
16 {children}
17 </Router>
18);