title: Call action inside of component | React, Redux
body: <p>I've read this article (<a href="https://medium.com/@stowball/a-dummys-guide-to-redux-and-thunk-in-react-d8904a7005d3" rel="nofollow noreferrer">https://medium.com/@stowball/a-dummys-guide-to-redux-and-thunk-in-react-d8904a7005d3</a>) a couple of times, but I'm still uncertain how to call your action inside of a component.</p>
  
  <p>I've setup my actions and reducers correctly (I hope), so I'm at the last step now, which is using your action. I know that I first have to import my action and then use <code>connect</code> from redux to connect it to the store. </p>
  
  <p>I currently have this in my component:</p>
  
  <pre><code>  componentDidMount() {
      this.serverRequest = axios
        .get('http://helloworld/customers')
        .then(res =&gt; {
          // Rerender state
          this.setState({
            res,
            dataToDisplay: res.data
          })
        })
    }
  </code></pre>
  
  <p>So my question is: How can I use my action inside of my component?</p>