{"action":"created","issue":{"url":"https://api.github.com/repos/goatslacker/alt/issues/381","labels_url":"https://api.github.com/repos/goatslacker/alt/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/goatslacker/alt/issues/381/comments","events_url":"https://api.github.com/repos/goatslacker/alt/issues/381/events","html_url":"https://github.com/goatslacker/alt/issues/381","id":93318486,"number":381,"title":"@connectToStores SyntaxError","user":{"login":"nlhkh","id":3459416,"avatar_url":"https://avatars.githubusercontent.com/u/3459416?v=3","gravatar_id":"","url":"https://api.github.com/users/nlhkh","html_url":"https://github.com/nlhkh","followers_url":"https://api.github.com/users/nlhkh/followers","following_url":"https://api.github.com/users/nlhkh/following{/other_user}","gists_url":"https://api.github.com/users/nlhkh/gists{/gist_id}","starred_url":"https://api.github.com/users/nlhkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlhkh/subscriptions","organizations_url":"https://api.github.com/users/nlhkh/orgs","repos_url":"https://api.github.com/users/nlhkh/repos","events_url":"https://api.github.com/users/nlhkh/events{/privacy}","received_events_url":"https://api.github.com/users/nlhkh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-06T16:16:59Z","updated_at":"2015-07-06T16:58:12Z","closed_at":null,"body":"I am not sure if `@` is a new valid keyword, but babel does not like it and my code does not build.\r\nI copy this from your README page."},"comment":{"url":"https://api.github.com/repos/goatslacker/alt/issues/comments/118924495","html_url":"https://github.com/goatslacker/alt/issues/381#issuecomment-118924495","issue_url":"https://api.github.com/repos/goatslacker/alt/issues/381","id":118924495,"user":{"login":"jdlehman","id":3144695,"avatar_url":"https://avatars.githubusercontent.com/u/3144695?v=3","gravatar_id":"","url":"https://api.github.com/users/jdlehman","html_url":"https://github.com/jdlehman","followers_url":"https://api.github.com/users/jdlehman/followers","following_url":"https://api.github.com/users/jdlehman/following{/other_user}","gists_url":"https://api.github.com/users/jdlehman/gists{/gist_id}","starred_url":"https://api.github.com/users/jdlehman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdlehman/subscriptions","organizations_url":"https://api.github.com/users/jdlehman/orgs","repos_url":"https://api.github.com/users/jdlehman/repos","events_url":"https://api.github.com/users/jdlehman/events{/privacy}","received_events_url":"https://api.github.com/users/jdlehman/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T16:58:12Z","updated_at":"2015-07-06T16:58:12Z","body":"The `@` symbol notates that a function is being used as a decorator. You need to set up your [`.babelrc`](http://babeljs.io/docs/usage/babelrc/) file so that the `stage` is at a level that supports decorators as they are not official in ES6.  Here is a [list](https://babeljs.io/docs/usage/experimental/) of the experimental features and what stage they are in.  For decorator support you need to be stage 1 or lower (each stage includes all things in higher stages and babel uses stage 2 by default).\r\n\r\nA decorator is just a function that wraps a class or function.  So you could just do:\r\n\r\n`connectToStores(component);`\r\n\r\nHere is an [example](https://github.com/goatslacker/alt/blob/ca7f455e89ea0f9a3b3c7e15f21bc7c10b870aca/src/utils/connectToStores.js#L29-L40)"}}