title: react-redux: getState() from any container
body: <p>I have the following in App.js. For debugging purposes, I can <code>console.log</code> the current state with <code>store.getState()</code>. </p>
  
  <pre><code>const App = () =&gt; {
    const store = createStore(reducers);
    console.log(store.getState());
    return (
      &lt;Provider store={store}&gt;
        &lt;Router /&gt;
      &lt;/Provider&gt;
    );
  };
  export default App;
  </code></pre>
  
  <p>Now how can I console.log <code>store.getState()</code> from containers within this app.</p>
  
  <p>Update:
  Following the 'connect' suggestion in the comments, this is a bottom part of the code in a container:</p>
  
  <pre><code>export default connect(mapStateToProps, {
    Decrease,
    Increase,
    selectNumber
  })(TableGenerator);
  </code></pre>
  
  <p>Where would I add the <code>getState()</code>?</p>