From 5b110b9d82e3003edc91d21886223ec3d47dad17 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Fri, 6 Oct 2017 11:57:22 +0200 Subject: [PATCH] This is the main router for index page, routes to searchRequest and admin pages. --- client/app/components/Main.jsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 client/app/components/Main.jsx diff --git a/client/app/components/Main.jsx b/client/app/components/Main.jsx new file mode 100644 index 0000000..118bb50 --- /dev/null +++ b/client/app/components/Main.jsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { HashRouter as Router, Route, Switch} from 'react-router-dom'; +import { createBrowserHistory } from 'history'; + +import SearchRequest from './SearchRequest.jsx'; +import Admin from './Admin.jsx'; +import NotFound from './NotFound.js'; + +export const history = createBrowserHistory(); + +const Main = () => ( + + + + + + + +) + +export default Main