{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/jsx/issues/37","labels_url":"https://api.github.com/repos/facebook/jsx/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jsx/issues/37/comments","events_url":"https://api.github.com/repos/facebook/jsx/issues/37/events","html_url":"https://github.com/facebook/jsx/issues/37","id":85498239,"number":37,"title":"Object literal syntax for attributes","user":{"login":"tinganho","id":1324476,"avatar_url":"https://avatars.githubusercontent.com/u/1324476?v=3","gravatar_id":"","url":"https://api.github.com/users/tinganho","html_url":"https://github.com/tinganho","followers_url":"https://api.github.com/users/tinganho/followers","following_url":"https://api.github.com/users/tinganho/following{/other_user}","gists_url":"https://api.github.com/users/tinganho/gists{/gist_id}","starred_url":"https://api.github.com/users/tinganho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinganho/subscriptions","organizations_url":"https://api.github.com/users/tinganho/orgs","repos_url":"https://api.github.com/users/tinganho/repos","events_url":"https://api.github.com/users/tinganho/events{/privacy}","received_events_url":"https://api.github.com/users/tinganho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-05T10:11:35Z","updated_at":"2015-06-05T10:11:35Z","closed_at":null,"body":"Since you already support:\r\n\r\n```jsx\r\nvar x = { a: 3, b: 'foo' };\r\nvar y = <MyClass { ...x } />;\r\n```\r\nAnd the current operation in JS for spread syntax are:\r\n```javascript\r\nvar attributes = { attr1: 1, attr2: 2, ... } => {...attributes}\r\n```\r\nNotice the placeholder punctuations `{` `}` remains the same.\r\n\r\nI just have to ask why you don't support:\r\n```javascript\r\nvar y = <MyClass { attr1: 1, attr2: 2 } />;\r\n```\r\n\r\nIt's less foreign syntax for JS. Also the placeholder punctuations remains the same. It is also a more productive syntax then having to write multiple `{` `}` for each attribute.\r\n\r\n\r\n\r\n"}}