Created
March 21, 2018 22:26
-
-
Save dantenovski/364d99019afb3b09292ca381a9697b92 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, { Component } from 'react'; | |
import { incrementCount, postObject } from '../actions/index'; | |
import { Route, Link } from 'react-router-dom'; | |
import Header from './Header'; | |
import Home from '../containers/Home'; | |
import Footer from './Footer'; | |
import Register from '../containers/Register'; | |
import Login from '../containers/Login'; | |
//import ContactUser from './ContactUser'; | |
import EditProfile from '../containers/EditProfile'; | |
import ListItem from '../containers/ListItem'; | |
//import ViewItem from './ViewItem'; | |
//import ViewProfile from './ViewProfile'; | |
export default class App extends Component { | |
constructor(props) { | |
super(props); | |
console.log(`props below App`); | |
console.log(props); | |
//this.state = props.store.getState(); | |
} | |
render(){ | |
return ( | |
<div> | |
<Header /> | |
<Route exact path='/' component={ Home }/> | |
<Route path="/login" component={ Login }/> | |
<Route path="/register" component={ Register }/> | |
<Route path="/list-item" component={ ListItem } /> | |
<Route path="/edit-profile" component={ EditProfile } /> | |
<Footer /> | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment