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