Connect with friends and the world around you.
See photos and updates
from friends in News Feed.
Share what's new
in your life on your Timeline.
Find more
of what you're looking for with Connect Search.
import React from 'react';
import {withRouter} from 'react-router-dom';
import SignupFormContainer from './signup_form_container';
import DemoLoginContainer from './demo_container';
import NewsFeedContainer from '../posts/news_feed_container';
import PostIndexContainer from '../posts/post_index_container';
import { connect } from 'react-redux';
import {fetchAllUsers} from '../../actions/session_actions';
import {Link} from 'react-router-dom';
class MainPage extends React.Component{
constructor(props){
super(props);
this.state={loading:true};
}
componentDidMount(){
this.props.fetchAllUsers().then(()=>this.setState({loading:false}));
}
render(){
if (!this.props.currentUser){
return(
See photos and updates from friends in News Feed. Share what's new in your life on your Timeline. Find more of what you're looking for with
Connect Search.Connect with friends and the world around you.