-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marie-Laure Thuret
authored and
Marie-Laure Thuret
committed
Mar 2, 2017
1 parent
01c93e8
commit 5a184b5
Showing
3 changed files
with
38 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
packages/react-instantsearch/examples/react-router-v4/src/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import App from './App'; | ||
import {BrowserRouter, Match} from 'react-router'; | ||
import { | ||
BrowserRouter as Router, | ||
Route, | ||
} from 'react-router-dom'; | ||
|
||
ReactDOM.render( | ||
<BrowserRouter> | ||
<Match | ||
pattern="/" | ||
component={App} | ||
/> | ||
</BrowserRouter>, | ||
<Router> | ||
<Route path="/" component={App}/> | ||
</Router>, | ||
document.getElementById('root') | ||
); |