Last active
February 27, 2019 10:30
-
-
Save juandaveth/9ab0f5ff25577a8c9940c01610c796bf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import React, { Component } from 'react'; | |
| import {Router, Route, browserHistory, IndexRoute} from 'react-router'; | |
| import Root from './components/Root'; | |
| import Inicio from './components/Inicio'; | |
| import Departamento from './components/Departamento'; | |
| import Provincia from './components/Provincia'; | |
| import Distrito from './components/Distrito'; | |
| class App extends Component { | |
| render() { | |
| return ( | |
| <div className="App"> | |
| <Router history={browserHistory}> | |
| <Route path={'/'} component={Root}> | |
| <IndexRoute component={Inicio}/> | |
| <Route path={'inicio'} component={Inicio}/> | |
| <Route path={'departamento'} component={Departamento}/> | |
| <Route path={'provincia'} component={Provincia}/> | |
| <Route path={'distrito'} component={Distrito}/> | |
| </Route> | |
| </Router> | |
| </div> | |
| ); | |
| } | |
| } | |
| export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment