Skip to content

Instantly share code, notes, and snippets.

Created January 31, 2018 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2fb29b1388d487e614a8c16e72acbd15 to your computer and use it in GitHub Desktop.
Save anonymous/2fb29b1388d487e614a8c16e72acbd15 to your computer and use it in GitHub Desktop.
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