function mapStateToProps(state, props) {
  return {
    loading: state.dataReducer.loading,
    data: state.dataReducer.data
  };
}
// This function makes Redux know that this component needs to be passed a piece of the state
This function makes Redux know that this component needs to be passed a piece of the state
This function makes Redux know that this component needs to be passed a piece of the state
function mapStateToProps(state, props) {
  return {
    loading: state.dataReducer.loading,
    data: state.dataReducer.data
  };
}
function mapStateToProps ( state , props ) { return { loading : state . dataReducer . loading , data : state . dataReducer . data } ; }
This function makes Redux know that this component needs to be passed a piece of the state
This function makes Redux know that this component needs to be passed a piece of the state