Created
January 31, 2018 18:32
-
-
Save anonymous/2fb29b1388d487e614a8c16e72acbd15 to your computer and use it in GitHub Desktop.
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from './App'; | |
import registerServiceWorker from './registerServiceWorker'; | |
import 'bootstrap/dist/css/bootstrap.css';// css de bootstrap | |
import './index.css'; | |
import Login from './Components/Login'; | |
import { Router, Route, hashHistory, indexRoute } from 'react-router'; //para poder trabajar con rutas | |
ReactDOM.render( | |
// con hashHistory el router va a saber como moverse por la app sin ningun problema hacia delante y hacia atras. | |
<Router history={hashHistory}> | |
<Route path="/" component={App}> | |
<indexRoute component={Login}/> | |
</Route> | |
</Router>, | |
document.getElementById('root')); | |
registerServiceWorker(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment