Skip to content

Commit

Permalink
Implement basic HashRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartozzz committed Apr 7, 2018
1 parent 5fdf16a commit 19ca8a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"react-codemirror2": "^3.0.0",
"react-dom": "^16.0.0",
"react-rnd": "^7.1.4",
"react-router-dom": "^4.2.2",
"react-split-pane": "^0.1.65",
"react-svg": "^2.1.22",
"react-tabs": "^2.1.0",
Expand Down
5 changes: 4 additions & 1 deletion src/scripts/bootstrap.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import {render} from "react-dom";
import {HashRouter} from "react-router-dom";
import {Provider} from "mobx-react";
import App from "./components/App";
import "./shortcuts/FileShortcuts";
Expand All @@ -10,6 +11,8 @@ const stores = {

render((
<Provider {...stores}>
<App />
<HashRouter>
<App />
</HashRouter>
</Provider>
), document.getElementById("app"));

0 comments on commit 19ca8a7

Please sign in to comment.