title: Cannot get value from Redux store
body: <p>I'm having trouble retrieving data from the Redux store. Redux logger is showing the data but can't seem to get it to render. Below is the code for my container component and my action/reducer:</p>
  
  <pre><code>//COMPONENT:
  import React, { Component } from 'react';
  import { connect } from 'react-redux';
  import { fetchGrade } from '../../modules/smiles';
  
  class Main extends Component {
    componentDidMount() {
      this.props.fetchSmile();
      console.log(this.props);
    }
  
    render() {
      const { smiles } = this.props;
      return (
        &lt;div&gt;
          &lt;h1&gt;This is the Main Component&lt;/h1&gt;
        &lt;/div&gt;
      );
    }
  }
  
  const mapStateToProps = state =&gt; {
    return { smiles: state.smiles };
  };
  
  const mapDispatchToProps = dispatch =&gt; {
    return {
      fetchSmile: params =&gt; dispatch(fetchGrade(params))
    };
  };
  
  export default connect(mapStateToProps, mapDispatchToProps)(Main);
  
  //ACTION/REDUCER:
  import axios from 'axios';
  const ADD_GRADE = 'SMILES/ADD_GRADE';
  
  export function reducer(state = {}, action) {
    switch (action.type) {
      case ADD_GRADE:
        return {
          ...state,
          grade: action.payload
        };
  
      default:
        return state;
    }
  }
  
  export const fetchGrade = () =&gt; {
    return dispatch =&gt; {
      axios
        .get('/api/test')
        .then(res =&gt; dispatch({ type: ADD_GRADE, payload: res.data }));
    };
  };
  
  //STORE:
  import { createStore, applyMiddleware } from 'redux';
  import thunk from 'redux-thunk';
  import { composeWithDevTools } from 'redux-devtools-extension';
  import logger from 'redux-logger';
  import reducer from '../modules';
  
  let store;
  
  export function configureStore(state: {}) {
    if (!store) {
      store = createStore(
        reducer,
        state,
        composeWithDevTools(applyMiddleware(logger, thunk))
      );
    }
  
    return store;
  }
  
  //INDEX.JS:
  import React from 'react';
  import { render } from 'react-dom';
  import { Provider } from 'react-redux';
  
  import './index.css';
  import App from './components/App';
  import registerServiceWorker from './registerServiceWorker';
  import { configureStore } from './store';
  
  window.store = configureStore();
  
  render(
    &lt;Provider store={window.store}&gt;
      &lt;App /&gt;
    &lt;/Provider&gt;,
    document.getElementById('root')
  );
  
  registerServiceWorker();
  </code></pre>
  
  <p>I really don't know if this is complicated or an easy fix. I feel like I'm doing everything right but no luck.</p>