{"action":"created","issue":{"url":"https://api.github.com/repos/threepointone/glamor/issues/91","repository_url":"https://api.github.com/repos/threepointone/glamor","labels_url":"https://api.github.com/repos/threepointone/glamor/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/threepointone/glamor/issues/91/comments","events_url":"https://api.github.com/repos/threepointone/glamor/issues/91/events","html_url":"https://github.com/threepointone/glamor/pull/91","id":185622515,"number":91,"title":"added propMerge() in react package","user":{"login":"otbe","id":3391052,"avatar_url":"https://avatars.githubusercontent.com/u/3391052?v=3","gravatar_id":"","url":"https://api.github.com/users/otbe","html_url":"https://github.com/otbe","followers_url":"https://api.github.com/users/otbe/followers","following_url":"https://api.github.com/users/otbe/following{/other_user}","gists_url":"https://api.github.com/users/otbe/gists{/gist_id}","starred_url":"https://api.github.com/users/otbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otbe/subscriptions","organizations_url":"https://api.github.com/users/otbe/orgs","repos_url":"https://api.github.com/users/otbe/repos","events_url":"https://api.github.com/users/otbe/events{/privacy}","received_events_url":"https://api.github.com/users/otbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-27T09:51:54Z","updated_at":"2016-10-29T16:39:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/threepointone/glamor/pulls/91","html_url":"https://github.com/threepointone/glamor/pull/91","diff_url":"https://github.com/threepointone/glamor/pull/91.diff","patch_url":"https://github.com/threepointone/glamor/pull/91.patch"},"body":"Like discussed in glamor gitter chatroom this PR adds a better way for composing react components with glamor styles.\r\n\r\n```typescript\r\nconst cardButton = style({\r\n  height: '20px',\r\n  color: 'green'\r\n});\r\n\r\nconst defaultButtonStyle = style({\r\n  color: 'red',\r\n  height: '50px',\r\n  border: '1px solid black'\r\n});\r\n\r\nlet Button: SFC<HTMLProps<HTMLButtonElement>> = (props) => \r\n<button {...propMerge(defaultButtonStyle, props)}/>;\r\n\r\nlet CardButton: SFC<HTMLProps<HTMLButtonElement>> = (props) => \r\n<Button {...propMerge(cardButton, props)}/>;\r\n\r\nlet AnotherButton: SFC<HTMLProps<HTMLButtonElement>> = (props) => \r\n<button {...defaultButtonStyle} {...props}/>;\r\n\r\nlet AnotherCardButton: SFC<HTMLProps<HTMLButtonElement>> = (props) => \r\n<AnotherButton {...cardButton} {...props}/>;\r\n```\r\n\r\nWill result in \r\n![bildschirmfoto 2016-10-27 um 11 51 09](https://cloud.githubusercontent.com/assets/3391052/19762800/af57d5fe-9c3b-11e6-8d61-d9e1063ad60c.png)"},"comment":{"url":"https://api.github.com/repos/threepointone/glamor/issues/comments/257101794","html_url":"https://github.com/threepointone/glamor/pull/91#issuecomment-257101794","issue_url":"https://api.github.com/repos/threepointone/glamor/issues/91","id":257101794,"user":{"login":"otbe","id":3391052,"avatar_url":"https://avatars.githubusercontent.com/u/3391052?v=3","gravatar_id":"","url":"https://api.github.com/users/otbe","html_url":"https://github.com/otbe","followers_url":"https://api.github.com/users/otbe/followers","following_url":"https://api.github.com/users/otbe/following{/other_user}","gists_url":"https://api.github.com/users/otbe/gists{/gist_id}","starred_url":"https://api.github.com/users/otbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otbe/subscriptions","organizations_url":"https://api.github.com/users/otbe/orgs","repos_url":"https://api.github.com/users/otbe/repos","events_url":"https://api.github.com/users/otbe/events{/privacy}","received_events_url":"https://api.github.com/users/otbe/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T16:39:44Z","updated_at":"2016-10-29T16:39:44Z","body":"@rszewczyk we do not use theming in our SPAs, so I can't help you a lot :/\r\nMaybe @threepointone can? :)"}}
{"actor":{"display_login":"otbe"}}