title: Passing function from mapDispatchToProps to Container component in react/redux app
body: <p>I'm rendering <strong><em>RootComponent</em></strong>:</p>
  
  <pre><code>//RENDERING ROOT COMPONENT-------------------------------------------------------------------------------
  ReactDOM.render(
  
      &lt;Provider store={store}&gt;
          &lt;RootComponent /&gt;
      &lt;/Provider&gt;, 
  
      document.getElementById('app'));
  //RENDERING ROOT COMPONENT-------------------------------------------------------------------------------
  </code></pre>
  
  <p><strong><em>RootComponent</em></strong> has only one container:</p>
  
  <pre><code>//ROOT COMPONENT----------------------------------------------------------------------------------------------------
  const RootComponent = () =&gt; (
  
      &lt;div&gt;
          &lt;BookListContainer /&gt;           
      &lt;/div&gt;
  
  );
  //ROOT COMPONENT----------------------------------------------------------------------------------------------------
  </code></pre>
  
  <p><strong><em>BooklistContainer</em></strong>:</p>
  
  <pre><code>//BOOKLIST CONTAINER-------------------------------------------------------------------------------------------------------
  class BookListContainer extends Component{
  
      componentWillMount(){
          console.log('componentWillMount executing...');
          () =&gt; this.props.ajaxRequestTriggeredMethod();
      }
  
      render() {
          return (
              &lt;div&gt;
                  &lt;BooksList DataInputParam={this.props.books} BtnClickHandler={this.props.buttonClickedMethod} /&gt;            
              &lt;/div&gt;
          );
      }
  }
  
  
  const mapStateToProps = (state) =&gt; {
      return{
          books: state.BooksReducer
      };
  };
  
  const mapDispatchToProps = (dispatch) =&gt; {
      return {
          buttonClickedMethod: () =&gt; dispatch({type: 'BUTTON_CLICKED'}),
          ajaxRequestTriggeredMethod: () =&gt; console.log('ajaxRequestTriggeredMethod is consoled...')
      };
  };
  
  connect(mapStateToProps, mapDispatchToProps)(BookListContainer);
  //BOOKLIST CONTAINER-------------------------------------------------------------------------------------------------------
  </code></pre>
  
  <p>All components are in one js file at the moment, so i'm not exporting/importing anything except standard libraries...</p>
  
  <p>Result: i'm getting <strong><em>'componentWillMount executing...'</em></strong> message in the console, but <strong><em>not</em></strong> getting <strong><em>'ajaxRequestTriggeredMethod is consoled...'</em></strong> message. Also, no errors in the console are displayed.</p>