{"action":"closed","issue":{"url":"https://api.github.com/repos/rackt/react-redux/issues/174","labels_url":"https://api.github.com/repos/rackt/react-redux/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-redux/issues/174/comments","events_url":"https://api.github.com/repos/rackt/react-redux/issues/174/events","html_url":"https://github.com/rackt/react-redux/issues/174","id":115199337,"number":174,"title":"Getting problems with mapDispatchToProps","user":{"login":"kennetpostigo","id":8888991,"avatar_url":"https://avatars.githubusercontent.com/u/8888991?v=3","gravatar_id":"","url":"https://api.github.com/users/kennetpostigo","html_url":"https://github.com/kennetpostigo","followers_url":"https://api.github.com/users/kennetpostigo/followers","following_url":"https://api.github.com/users/kennetpostigo/following{/other_user}","gists_url":"https://api.github.com/users/kennetpostigo/gists{/gist_id}","starred_url":"https://api.github.com/users/kennetpostigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennetpostigo/subscriptions","organizations_url":"https://api.github.com/users/kennetpostigo/orgs","repos_url":"https://api.github.com/users/kennetpostigo/repos","events_url":"https://api.github.com/users/kennetpostigo/events{/privacy}","received_events_url":"https://api.github.com/users/kennetpostigo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-05T03:02:03Z","updated_at":"2015-11-05T19:03:16Z","closed_at":"2015-11-05T19:03:16Z","body":"Hello,\r\n\r\nIm currently trying to `connect` a component with `react-redux`, but I'm having a bit of trouble and I'm not sure where I may be going wrong. (I'm using an alternative way to declare components without using classes https://gist.github.com/jquense/47bbd2613e0b03d7e51c) Heres the Component I'm trying to connect:\r\n\r\n```javascript\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport SideMenu from './SideMenu.js';\r\nimport LeadsFilterBar from './LeadsFilterBar.js';\r\nimport Leads from './Leads.js';\r\nimport {connect} from 'react-redux';\r\nimport { bindActionCreators } from 'redux';\r\nimport * as LeadActions from './../../actions/actionCreators.js';\r\n\r\n\r\nfunction LeadsList (props, reactElementInstance) {\r\n    var instance = Object.create(React.Component.prototype);\r\n        instance.context = reactElementInstance;\r\n        instance.props = props;\r\n        instance.render = function () {\r\n            return (\r\n                <div className=\"leadsList\">\r\n                    <div className=\"container-fluid\">\r\n                        <div className=\"row\">\r\n                            <div className=\"col-sm-12\">\r\n                                <div className=\"col-sm-2\">\r\n                                    <SideMenu/>\r\n                                </div>\r\n                                <div className=\"col-sm-10\">\r\n                                    <LeadsFilterBar onSearch={actions.searchLeads}/>\r\n                                    <Leads loadLeads={actions.fetchLeads} userLeads={userLeads}/>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            );\r\n        };\r\n\r\n    return instance;\r\n}\r\n\r\nfunction mapStateToProps(state) {\r\n    return {\r\n        userLeads: state.getIn(['leads']),\r\n        savedLeads: state.getIn(['savedLeads']),\r\n        searchedLeads: state.getIn(['searchedLeads'])\r\n    };\r\n}\r\n\r\nfunction mapDispatchToProps(dispatch) {\r\n    return {\r\n        actions: bindActionCreators(LeadActions, dispatch)\r\n    };\r\n}\r\n\r\nexport var LeadsListContainer = connect(mapStateToProps, mapDispatchToProps)(LeadsList);\r\n```\r\n\r\nJust in case you're wondering I have wrapped the `Provider` around the root component and passed it the store. I get the following error from this code:\r\n\r\n<img width=\"1280\" alt=\"screen shot 2015-11-04 at 10 00 56 pm\" src=\"https://cloud.githubusercontent.com/assets/8888991/10958760/981ab304-833f-11e5-8837-edc2e61b9c25.png\">\r\n\r\nThe odd thing is webpack itself is not reporting an error for `actions` not being defined.\r\n\r\n"}}