import React, { Component } from 'react';
import { Router, browserHistory, Route, IndexRoute, withRouter } from 'react-router'
import Login from './containers/login/Login';
import Welcome from './containers/home/Welcome';
import NotFoundPage from './components/NotFoundPage';

export default class App extends Component {

  render() {
    return (
      <Router history={browserHistory}>
        <Route path="/" component={Login}>
            <IndexRoute to="/login"/>
        </Route>
        <Route path="/login/welcome/" component={withRouter(Welcome)}/>
        <Route path="*" component={NotFoundPage}/>
      </Router>
    );
  }
}

{'avg_line_length': 30.428571428571427, 'max_line_length': 84, 'alphanum_fraction': 0.651017214397496, 'licenses': ['MIT'], 'repository_name': 'iCruzeTo/react-app-productmanager', 'path': 'src/App.js', 'size': 639, 'lang': 'JavaScript'}