{"action":"created","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/6237","repository_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/6237/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/6237/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/6237/events","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/6237","id":110811976,"number":6237,"title":"react-redux - connect does not work","user":{"login":"schlaup","id":2338309,"avatar_url":"https://avatars1.githubusercontent.com/u/2338309?v=4","gravatar_id":"","url":"https://api.github.com/users/schlaup","html_url":"https://github.com/schlaup","followers_url":"https://api.github.com/users/schlaup/followers","following_url":"https://api.github.com/users/schlaup/following{/other_user}","gists_url":"https://api.github.com/users/schlaup/gists{/gist_id}","starred_url":"https://api.github.com/users/schlaup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schlaup/subscriptions","organizations_url":"https://api.github.com/users/schlaup/orgs","repos_url":"https://api.github.com/users/schlaup/repos","events_url":"https://api.github.com/users/schlaup/events{/privacy}","received_events_url":"https://api.github.com/users/schlaup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":29,"created_at":"2015-10-10T19:25:25Z","updated_at":"2017-11-22T15:53:52Z","closed_at":"2016-03-10T13:29:09Z","author_association":"NONE","body":"For example (in App.tsx)\n\n```\nexport default connect(mapStateToProps)(App);\n```\n\nand then:\n\n```\nimport App from './App';\n...\n    <Provider store={store}>\n        {() =>\n                <App />\n            }\n    </Provider>\n```\n\ncauses compile error: (TypeScript 1.6)\n\nError TS2604: JSX element type 'App' does not have any construct or call signatures.\n\nIf I change the type definition so that it returns a Function:\n\n```\nexport function connect(mapStateToProps?: MapStateToProps,\n                      mapDispatchToProps?: MapDispatchToPropsFunction|MapDispatchToPropsObject,\n                      mergeProps?: MergeProps,\n                      options?: Options): Function;\n```\n\nit compiles and works.\n"},"comment":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments/346392056","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/6237#issuecomment-346392056","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/6237","id":346392056,"user":{"login":"stevematdavies","id":6196739,"avatar_url":"https://avatars3.githubusercontent.com/u/6196739?v=4","gravatar_id":"","url":"https://api.github.com/users/stevematdavies","html_url":"https://github.com/stevematdavies","followers_url":"https://api.github.com/users/stevematdavies/followers","following_url":"https://api.github.com/users/stevematdavies/following{/other_user}","gists_url":"https://api.github.com/users/stevematdavies/gists{/gist_id}","starred_url":"https://api.github.com/users/stevematdavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevematdavies/subscriptions","organizations_url":"https://api.github.com/users/stevematdavies/orgs","repos_url":"https://api.github.com/users/stevematdavies/repos","events_url":"https://api.github.com/users/stevematdavies/events{/privacy}","received_events_url":"https://api.github.com/users/stevematdavies/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T15:53:52Z","updated_at":"2017-11-22T15:53:52Z","author_association":"NONE","body":"Still waiting for fix on this, it hasn't been addressed yet. Re Writing these components in JSX for now, pulling them away from TS until react-redux and TS learn to live together better!"}}
{"actor":{"display_login":"stevematdavies"}}