src/containers/Profile.js
/**
* ## Redux boilerplate
* Map state via reselect selectors to props
*/
Redux boilerplate
Map state via reselect selectors to props
Redux boilerplate Map state via reselect selectors to props
function mapStateToProps (state) {
  return {
    userProfile: getUserProfile(state),
    userPhotos: getUserPhotosThumbnails(state),
    popularPhotos: getPopularPhotosThumbnails(state),
    profile: state.profile,
    global: {
      currentUser: state.global.currentUser,
      currentState: state.global.currentState,
      showState: state.global.showState
    }
  }
}
function mapStateToProps ( state ) { return { userProfile : getUserProfile ( state ) , userPhotos : getUserPhotosThumbnails ( state ) , popularPhotos : getPopularPhotosThumbnails ( state ) , profile : state . profile , global : { currentUser : state . global . currentUser , currentState : state . global . currentState , showState : state . global . showState } } }
Redux boilerplate
Map state via reselect selectors to props
Redux boilerplate Map state via reselect selectors to props