Skip to content

Commit 9222cd5

Browse files
committed
feat: add root
1 parent c6b97bd commit 9222cd5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

frontend/src/Root.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import * as React from 'react';
2+
import { Router } from 'react-router';
3+
4+
import { browserHistory as history } from 'react-router';
5+
6+
7+
// Routes
8+
import configureRoutes from './configureRoutes';
9+
10+
const Root = ({history}) => (
11+
<Router history={history}>
12+
{configureRoutes()}
13+
</Router>
14+
);
15+
16+
export default Root;
17+

0 commit comments

Comments
 (0)