Action not mapped with mapDispatchtoProps
<p>Hello everyone and merry x-mas
I have created and action with source code like this:</p>

<pre><code>export const SWITCH_LANGUAGE = 'SWITCH_LANGUAGE';

    export function switchLanguage(language) {

        return {
          type: SWITCH_LANGUAGE,
          payload: language
        };
    }
</code></pre>

<p>Then i want to make this action a prop in my page.js
As a result i write:</p>

<pre><code>import { switchLanguage } from '../actions/index';
...
function mapDispatchToProps(dispatch) {
  return bindActionCreators({ switchLanguage }, dispatch);
}
..
const switchLanguage = this.props.switchLanguage;
</code></pre>

<p>But when i write a console.log(props.switchLanguage) it shows me</p>

<pre><code>function () {
        return dispatch(actionCreator.apply(undefined, arguments));
      }
</code></pre>

<p>Why is this happening??</p>