{"action":"created","issue":{"url":"https://api.github.com/repos/styled-components/styled-components/issues/1820","repository_url":"https://api.github.com/repos/styled-components/styled-components","labels_url":"https://api.github.com/repos/styled-components/styled-components/issues/1820/labels{/name}","comments_url":"https://api.github.com/repos/styled-components/styled-components/issues/1820/comments","events_url":"https://api.github.com/repos/styled-components/styled-components/issues/1820/events","html_url":"https://github.com/styled-components/styled-components/pull/1820","id":334336178,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2MzM0NTU0","number":1820,"title":"add support for first-class functions","user":{"login":"acjay","id":1256382,"node_id":"MDQ6VXNlcjEyNTYzODI=","avatar_url":"https://avatars2.githubusercontent.com/u/1256382?v=4","gravatar_id":"","url":"https://api.github.com/users/acjay","html_url":"https://github.com/acjay","followers_url":"https://api.github.com/users/acjay/followers","following_url":"https://api.github.com/users/acjay/following{/other_user}","gists_url":"https://api.github.com/users/acjay/gists{/gist_id}","starred_url":"https://api.github.com/users/acjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acjay/subscriptions","organizations_url":"https://api.github.com/users/acjay/orgs","repos_url":"https://api.github.com/users/acjay/repos","events_url":"https://api.github.com/users/acjay/events{/privacy}","received_events_url":"https://api.github.com/users/acjay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-21T04:43:47Z","updated_at":"2018-06-21T16:56:56Z","closed_at":"2018-06-21T16:56:49Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/styled-components/styled-components/pulls/1820","html_url":"https://github.com/styled-components/styled-components/pull/1820","diff_url":"https://github.com/styled-components/styled-components/pull/1820.diff","patch_url":"https://github.com/styled-components/styled-components/pull/1820.patch"},"body":"Closes #1620\r\n\r\nInspired by @probablyup's comment, I checkout out #1732 to see if I could solve my problem in #1620. Turns out, it was really straightforward.\r\n\r\nTo get a feel for the syntax this enables:\r\n\r\n<img width=\"882\" alt=\"image\" src=\"https://user-images.githubusercontent.com/1256382/41698216-1a0abf9a-74eb-11e8-9397-9ab2b6ef0f64.png\">\r\n\r\nor alternatively\r\n\r\n<img width=\"875\" alt=\"image\" src=\"https://user-images.githubusercontent.com/1256382/41698382-0d1a9eee-74ec-11e8-9cbc-02eacfcd6e40.png\">\r\n\r\nThis is particularly useful for DRYing up repetitive logic mapping props to styles and not having to repeatedly reference the props object."},"comment":{"url":"https://api.github.com/repos/styled-components/styled-components/issues/comments/399172911","html_url":"https://github.com/styled-components/styled-components/pull/1820#issuecomment-399172911","issue_url":"https://api.github.com/repos/styled-components/styled-components/issues/1820","id":399172911,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTE3MjkxMQ==","user":{"login":"mxstbr","id":7525670,"node_id":"MDQ6VXNlcjc1MjU2NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/7525670?v=4","gravatar_id":"","url":"https://api.github.com/users/mxstbr","html_url":"https://github.com/mxstbr","followers_url":"https://api.github.com/users/mxstbr/followers","following_url":"https://api.github.com/users/mxstbr/following{/other_user}","gists_url":"https://api.github.com/users/mxstbr/gists{/gist_id}","starred_url":"https://api.github.com/users/mxstbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxstbr/subscriptions","organizations_url":"https://api.github.com/users/mxstbr/orgs","repos_url":"https://api.github.com/users/mxstbr/repos","events_url":"https://api.github.com/users/mxstbr/events{/privacy}","received_events_url":"https://api.github.com/users/mxstbr/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T16:56:56Z","updated_at":"2018-06-21T16:56:56Z","author_association":"MEMBER","body":"Thank you so much for helping us improve styled-components! Based on our [Community Guidelines](https://github.com/styled-components/styled-components/blob/master/CONTRIBUTING.md) every person that has a PR of any kind merged is offered **an invitation to the styled-components organization**—that is you right now!\n\nShould you accept, you'll get write access to the main repository. (and a fancy `styled-components` logo on your GitHub profile!) You'll be able to label and close issues, merge pull requests, create new branches, etc. We want you to help us out with those things, so don't be scared to do them! Make sure to read our [contribution and community guidelines](https://github.com/styled-components/styled-components/blob/master/CONTRIBUTING.md), which explains all of this in more detail. Of course, if you have any questions just let me know!"}}
{"actor":{"display_login":"mxstbr"}}