{"action":"opened","issue":{"url":"https://api.github.com/repos/trufflesuite/drizzle-react/issues/10","repository_url":"https://api.github.com/repos/trufflesuite/drizzle-react","labels_url":"https://api.github.com/repos/trufflesuite/drizzle-react/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/trufflesuite/drizzle-react/issues/10/comments","events_url":"https://api.github.com/repos/trufflesuite/drizzle-react/issues/10/events","html_url":"https://github.com/trufflesuite/drizzle-react/issues/10","id":309083852,"number":10,"title":"Misleading statement in \"Getting Started\" section of README.md","user":{"login":"zkmoney","id":20133605,"avatar_url":"https://avatars1.githubusercontent.com/u/20133605?v=4","gravatar_id":"","url":"https://api.github.com/users/zkmoney","html_url":"https://github.com/zkmoney","followers_url":"https://api.github.com/users/zkmoney/followers","following_url":"https://api.github.com/users/zkmoney/following{/other_user}","gists_url":"https://api.github.com/users/zkmoney/gists{/gist_id}","starred_url":"https://api.github.com/users/zkmoney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkmoney/subscriptions","organizations_url":"https://api.github.com/users/zkmoney/orgs","repos_url":"https://api.github.com/users/zkmoney/repos","events_url":"https://api.github.com/users/zkmoney/events{/privacy}","received_events_url":"https://api.github.com/users/zkmoney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-27T18:31:30Z","updated_at":"2018-03-27T18:31:30Z","closed_at":null,"author_association":"NONE","body":"No. 4 in the \"Getting Started\" section of the README.md (https://github.com/trufflesuite/drizzle-react#getting-started) says\r\n\r\n\"Wrap your components using the drizzleConnect function. It has the same API as the connect() function in react-redux\"\r\n\r\nThis is misleading. `connect()`  has the api\r\n\r\n```\r\nconnect([mapStateToProps], [mapDispatchToProps], [mergeProps], [options])\r\n```\r\n\r\nthat returns a wrapper function that you then pass the component class you would like to wrap to. This follows the \"enhancers\" pattern (https://reactjs.org/docs/higher-order-components.html#convention-maximizing-composability) where the HOC returns a function that has a signature like `Component => Component`. This allows one to easily compose multiple enhancer HOC's with something like redux's `compose` function. \r\n\r\nOn the other hand, `drizzleConnect` accepts the `Component` as the first argument, which is a slightly different API.\r\n\r\n"}}
{"actor":{"display_login":"zkmoney"}}