{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/1162","labels_url":"https://api.github.com/repos/rackt/react-router/issues/1162/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/1162/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/1162/events","html_url":"https://github.com/rackt/react-router/issues/1162","id":73732209,"number":1162,"title":"Add *Mixin alias for mixins","user":{"login":"cesarandreu","id":656870,"avatar_url":"https://avatars.githubusercontent.com/u/656870?v=3","gravatar_id":"","url":"https://api.github.com/users/cesarandreu","html_url":"https://github.com/cesarandreu","followers_url":"https://api.github.com/users/cesarandreu/followers","following_url":"https://api.github.com/users/cesarandreu/following{/other_user}","gists_url":"https://api.github.com/users/cesarandreu/gists{/gist_id}","starred_url":"https://api.github.com/users/cesarandreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesarandreu/subscriptions","organizations_url":"https://api.github.com/users/cesarandreu/orgs","repos_url":"https://api.github.com/users/cesarandreu/repos","events_url":"https://api.github.com/users/cesarandreu/events{/privacy}","received_events_url":"https://api.github.com/users/cesarandreu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T20:43:22Z","updated_at":"2015-05-09T05:30:37Z","closed_at":"2015-05-09T05:30:37Z","body":"It's pretty common for mixins to include `Mixin` at the end. For example, [PureRenderMixin](http://facebook.github.io/react/docs/pure-render-mixin.html).\r\n\r\nWould you consider adding `NavigationMixin` and `StateMixin` as aliases for `Navigation` and `State`?\r\n\r\nThis is probably the ultimate nitpick, but I want `*Mixin` so I can do:\r\n\r\n```jsx\r\nvar React = require('react')\r\nvar {StateMixin} = require('react-router')\r\n\r\nvar Foo = React.createClass({\r\n  mixins: [\r\n    StateMixin\r\n  ],\r\n\r\n  render () {\r\n  // ...\r\n  }\r\n})\r\n\r\nmodule.exports = Foo\r\n```\r\n\r\nAll the other mixins I'm using export `*Mixin`.\r\n"},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/100431179","html_url":"https://github.com/rackt/react-router/issues/1162#issuecomment-100431179","issue_url":"https://api.github.com/repos/rackt/react-router/issues/1162","id":100431179,"user":{"login":"mjackson","id":92839,"avatar_url":"https://avatars.githubusercontent.com/u/92839?v=3","gravatar_id":"","url":"https://api.github.com/users/mjackson","html_url":"https://github.com/mjackson","followers_url":"https://api.github.com/users/mjackson/followers","following_url":"https://api.github.com/users/mjackson/following{/other_user}","gists_url":"https://api.github.com/users/mjackson/gists{/gist_id}","starred_url":"https://api.github.com/users/mjackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjackson/subscriptions","organizations_url":"https://api.github.com/users/mjackson/orgs","repos_url":"https://api.github.com/users/mjackson/repos","events_url":"https://api.github.com/users/mjackson/events{/privacy}","received_events_url":"https://api.github.com/users/mjackson/received_events","type":"User","site_admin":false},"created_at":"2015-05-09T05:30:37Z","updated_at":"2015-05-09T05:30:37Z","body":"I'd like to avoid having two separate names that reference the same thing. If the name really bothers you, you can always:\r\n\r\n```js\r\nvar { State: StateMixin } = require('react-router');\r\n// Now you have StateMixin\r\n```"}}