{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/react-redux/issues/20","labels_url":"https://api.github.com/repos/gaearon/react-redux/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/react-redux/issues/20/comments","events_url":"https://api.github.com/repos/gaearon/react-redux/issues/20/events","html_url":"https://github.com/gaearon/react-redux/issues/20","id":98697522,"number":20,"title":"ConnectedComponent","user":{"login":"dmitry-zaets","id":2580555,"avatar_url":"https://avatars.githubusercontent.com/u/2580555?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitry-zaets","html_url":"https://github.com/dmitry-zaets","followers_url":"https://api.github.com/users/dmitry-zaets/followers","following_url":"https://api.github.com/users/dmitry-zaets/following{/other_user}","gists_url":"https://api.github.com/users/dmitry-zaets/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitry-zaets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitry-zaets/subscriptions","organizations_url":"https://api.github.com/users/dmitry-zaets/orgs","repos_url":"https://api.github.com/users/dmitry-zaets/repos","events_url":"https://api.github.com/users/dmitry-zaets/events{/privacy}","received_events_url":"https://api.github.com/users/dmitry-zaets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-03T08:37:54Z","updated_at":"2015-08-03T09:01:44Z","closed_at":null,"body":"Is there a way to create a class which will be a base class for Smart Components, instead of using `export default connect(select)(CounterContainer);`?\r\n\r\nSo it would looks like:\r\n```javascript\r\nexport default CounterContainer extends ConnectedComponent {\r\n  select(state) {\r\n    return {\r\n      counter: state.counter\r\n    };\r\n  }\r\n  render() {\r\n    const { dispatch, counter } = this.props;\r\n    return (\r\n      <Counter counter={counter}\r\n               increment={() => dispatch(increment())} />\r\n  );\r\n}\r\n```\r\nI'm not sure, probably it is not possible to implement connector as a base class or that is not a right  way of how it should be done in javascript."},"comment":{"url":"https://api.github.com/repos/gaearon/react-redux/issues/comments/127169685","html_url":"https://github.com/gaearon/react-redux/issues/20#issuecomment-127169685","issue_url":"https://api.github.com/repos/gaearon/react-redux/issues/20","id":127169685,"user":{"login":"dmitry-zaets","id":2580555,"avatar_url":"https://avatars.githubusercontent.com/u/2580555?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitry-zaets","html_url":"https://github.com/dmitry-zaets","followers_url":"https://api.github.com/users/dmitry-zaets/followers","following_url":"https://api.github.com/users/dmitry-zaets/following{/other_user}","gists_url":"https://api.github.com/users/dmitry-zaets/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitry-zaets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitry-zaets/subscriptions","organizations_url":"https://api.github.com/users/dmitry-zaets/orgs","repos_url":"https://api.github.com/users/dmitry-zaets/repos","events_url":"https://api.github.com/users/dmitry-zaets/events{/privacy}","received_events_url":"https://api.github.com/users/dmitry-zaets/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T09:01:44Z","updated_at":"2015-08-03T09:01:44Z","body":"Thanks for a good explanation! Will avoid using it in such way!\r\nJust wanted to make using of connectors more transparent than 'connector(select)(Component)' calls."}}