Switch to the hash router for security.

This is needed to avoid accidentally leaking urls to the server.
master
Tom Hacohen 7 years ago
parent bba3282def
commit b9798f1b13

@ -1,18 +1,15 @@
import * as React from 'react'; import * as React from 'react';
import { Router } from 'react-router'; import { HashRouter } from 'react-router-dom';
import './App.css'; import './App.css';
import { JournalList } from './JournalList'; import { JournalList } from './JournalList';
import createBrowserHistory from 'history/createBrowserHistory';
const customHistory = createBrowserHistory();
class App extends React.Component { class App extends React.Component {
render() { render() {
return ( return (
<Router history={customHistory}> <HashRouter>
<JournalList /> <JournalList />
</Router> </HashRouter>
); );
} }
} }

Loading…
Cancel
Save