{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/2886","labels_url":"https://api.github.com/repos/facebook/react/issues/2886/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/2886/comments","events_url":"https://api.github.com/repos/facebook/react/issues/2886/events","html_url":"https://github.com/facebook/react/issues/2886","id":54881373,"number":2886,"title":"Missing closing brace gives misleading warning...","user":{"login":"Dakuan","id":633621,"avatar_url":"https://avatars.githubusercontent.com/u/633621?v=3","gravatar_id":"","url":"https://api.github.com/users/Dakuan","html_url":"https://github.com/Dakuan","followers_url":"https://api.github.com/users/Dakuan/followers","following_url":"https://api.github.com/users/Dakuan/following{/other_user}","gists_url":"https://api.github.com/users/Dakuan/gists{/gist_id}","starred_url":"https://api.github.com/users/Dakuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dakuan/subscriptions","organizations_url":"https://api.github.com/users/Dakuan/orgs","repos_url":"https://api.github.com/users/Dakuan/repos","events_url":"https://api.github.com/users/Dakuan/events{/privacy}","received_events_url":"https://api.github.com/users/Dakuan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-20T13:14:12Z","updated_at":"2015-01-20T14:08:53Z","closed_at":null,"body":"heres some `jsx` code:\r\n\r\n``` html\r\n\t\treturn (\r\n\t\t\t<div className=\"form-group\">\r\n\t\t\t\t<label className={\"control-label \" + this.props.labelClass}>\r\n\t\t\t\t\t{this.props.label || this.props.name}\r\n\t\t\t\t</label>\r\n\t\t\t\t<div className={this.props.inputClass>\r\n\t\t\t\t\t<select name={this.props.name} className=\"form-control\">\r\n\t\t\t\t\t\t{this.props.options.map(this._renderOption)}\r\n\t\t\t\t\t</select>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t)\r\n```\r\n\r\nwhich gives the following error:\r\n\r\n```\r\nLine 19: Adjacent XJS elements must be wrapped in an enclosing tag\r\n```\r\n\r\nSpent a bit of time wondering which tag wasn't closed or some such before noticing that this line wasn't right:\r\n\r\n``` html\r\n<div className={this.props.inputClass>\r\n```\r\nIt's missing the closing brace. I wonder if the error could be more descriptive in this case, as when I have had this error before its been the pointy rather than curly brackets that have been the problem.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/70658057","html_url":"https://github.com/facebook/react/issues/2886#issuecomment-70658057","issue_url":"https://api.github.com/repos/facebook/react/issues/2886","id":70658057,"user":{"login":"Dakuan","id":633621,"avatar_url":"https://avatars.githubusercontent.com/u/633621?v=3","gravatar_id":"","url":"https://api.github.com/users/Dakuan","html_url":"https://github.com/Dakuan","followers_url":"https://api.github.com/users/Dakuan/followers","following_url":"https://api.github.com/users/Dakuan/following{/other_user}","gists_url":"https://api.github.com/users/Dakuan/gists{/gist_id}","starred_url":"https://api.github.com/users/Dakuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dakuan/subscriptions","organizations_url":"https://api.github.com/users/Dakuan/orgs","repos_url":"https://api.github.com/users/Dakuan/repos","events_url":"https://api.github.com/users/Dakuan/events{/privacy}","received_events_url":"https://api.github.com/users/Dakuan/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T14:08:53Z","updated_at":"2015-01-20T14:08:53Z","body":"@brigand Indeed, didn't think it was going to be an easy one. Maybe worth adding to a list of gotchas? It's the sort of silly thing that's easy to lose quite a bit of time to!"}}