{"action":"closed","issue":{"url":"https://api.github.com/repos/yahoo/react-intl/issues/141","labels_url":"https://api.github.com/repos/yahoo/react-intl/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/react-intl/issues/141/comments","events_url":"https://api.github.com/repos/yahoo/react-intl/issues/141/events","html_url":"https://github.com/yahoo/react-intl/issues/141","id":98008821,"number":141,"title":"Allow use react-intl to be used without a mixin. ","user":{"login":"3den","id":67904,"avatar_url":"https://avatars.githubusercontent.com/u/67904?v=3","gravatar_id":"","url":"https://api.github.com/users/3den","html_url":"https://github.com/3den","followers_url":"https://api.github.com/users/3den/followers","following_url":"https://api.github.com/users/3den/following{/other_user}","gists_url":"https://api.github.com/users/3den/gists{/gist_id}","starred_url":"https://api.github.com/users/3den/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3den/subscriptions","organizations_url":"https://api.github.com/users/3den/orgs","repos_url":"https://api.github.com/users/3den/repos","events_url":"https://api.github.com/users/3den/events{/privacy}","received_events_url":"https://api.github.com/users/3den/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-29T19:14:14Z","updated_at":"2015-07-30T18:22:36Z","closed_at":"2015-07-30T18:22:36Z","body":"It would be nice if we could simplify the API to be able to use the react-intl without a requiring a mixing.\r\n\r\n```js\r\nvar FormattedMessage  = ReactIntl.FormattedMessage;\r\nvar FormattedRelative = ReactIntl.FormattedRelative;\r\n\r\nvar PostMeta = React.createClass({\r\n    render: function () {\r\n        return (\r\n            <FormattedMessage\r\n                message=\"post.meta\"\r\n                num={this.props.post.comments.length}\r\n                ago={<FormattedRelative value={this.props.post.date} />} />\r\n        );\r\n    }\r\n});\r\n```\r\n\r\nIn that case the messages and locale can be passed down as props or in the context.\r\n"}}