{"action":"created","issue":{"url":"https://api.github.com/repos/yahoo/react-intl/issues/73","labels_url":"https://api.github.com/repos/yahoo/react-intl/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/react-intl/issues/73/comments","events_url":"https://api.github.com/repos/yahoo/react-intl/issues/73/events","html_url":"https://github.com/yahoo/react-intl/issues/73","id":56017407,"number":73,"title":"custom component 'wrappers'","user":{"login":"athibaud","id":1503735,"avatar_url":"https://avatars.githubusercontent.com/u/1503735?v=3","gravatar_id":"","url":"https://api.github.com/users/athibaud","html_url":"https://github.com/athibaud","followers_url":"https://api.github.com/users/athibaud/followers","following_url":"https://api.github.com/users/athibaud/following{/other_user}","gists_url":"https://api.github.com/users/athibaud/gists{/gist_id}","starred_url":"https://api.github.com/users/athibaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athibaud/subscriptions","organizations_url":"https://api.github.com/users/athibaud/orgs","repos_url":"https://api.github.com/users/athibaud/repos","events_url":"https://api.github.com/users/athibaud/events{/privacy}","received_events_url":"https://api.github.com/users/athibaud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-30T10:30:40Z","updated_at":"2015-02-02T13:27:12Z","closed_at":"2015-02-02T13:27:12Z","body":"another thing i think would be useful is to be able to wrap react-intl components in our own components\r\n\r\ni see there already is support for [string tags](https://github.com/yahoo/react-intl/blob/master/src/components/message.js#L13), but that limits us to html only.\r\nsay i have a `Text`component, i'd like to do\r\n```js\r\n<ReactIntl.FormattedMessage\r\n  message=\"yizeerr\"\r\n  component={require('components/Text')}\r\n/>\r\n```\r\n\r\ni tried it out quickly yesterday and it worked, so it should be quite easy to implement. i could submit a pull request soon if you're okay with that.\r\n\r\none thing i still don't know is how to properly 'propType' that component.\r\ni suppose with react 0.13 we could have something like `React.PropTypes.instanceOf(React.Component)`\r\n\r\ni've only needed that for `FormattedMessage` so far but it could be useful for the other components\r\n"},"comment":{"url":"https://api.github.com/repos/yahoo/react-intl/issues/comments/72457352","html_url":"https://github.com/yahoo/react-intl/issues/73#issuecomment-72457352","issue_url":"https://api.github.com/repos/yahoo/react-intl/issues/73","id":72457352,"user":{"login":"athibaud","id":1503735,"avatar_url":"https://avatars.githubusercontent.com/u/1503735?v=3","gravatar_id":"","url":"https://api.github.com/users/athibaud","html_url":"https://github.com/athibaud","followers_url":"https://api.github.com/users/athibaud/followers","following_url":"https://api.github.com/users/athibaud/following{/other_user}","gists_url":"https://api.github.com/users/athibaud/gists{/gist_id}","starred_url":"https://api.github.com/users/athibaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athibaud/subscriptions","organizations_url":"https://api.github.com/users/athibaud/orgs","repos_url":"https://api.github.com/users/athibaud/repos","events_url":"https://api.github.com/users/athibaud/events{/privacy}","received_events_url":"https://api.github.com/users/athibaud/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T13:27:12Z","updated_at":"2015-02-02T13:27:12Z","body":"closing this one because as i mention [here](https://github.com/yahoo/react-intl/issues/72#issuecomment-72436796) it has deeper implications than i thought. namely if the wrapper component needs specific props it would complicate the current implementation.\r\n\r\ni'm convinced there is little use for this now. friday evening issue. bad idea :)\r\n"}}