From b9798f1b131154e175732dc65f5023bc7d457333 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 1 Dec 2017 15:34:07 +0000 Subject: [PATCH] Switch to the hash router for security. This is needed to avoid accidentally leaking urls to the server. --- src/App.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 4e9bede..b64b8dc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,18 +1,15 @@ import * as React from 'react'; -import { Router } from 'react-router'; +import { HashRouter } from 'react-router-dom'; import './App.css'; import { JournalList } from './JournalList'; -import createBrowserHistory from 'history/createBrowserHistory'; -const customHistory = createBrowserHistory(); - class App extends React.Component { render() { return ( - + - + ); } }