{"action":"created","issue":{"url":"https://api.github.com/repos/mattn/emmet-vim/issues/265","labels_url":"https://api.github.com/repos/mattn/emmet-vim/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/mattn/emmet-vim/issues/265/comments","events_url":"https://api.github.com/repos/mattn/emmet-vim/issues/265/events","html_url":"https://github.com/mattn/emmet-vim/issues/265","id":65567780,"number":265,"title":"Add JSX user option","user":{"login":"iansinnott","id":3154865,"avatar_url":"https://avatars.githubusercontent.com/u/3154865?v=3","gravatar_id":"","url":"https://api.github.com/users/iansinnott","html_url":"https://github.com/iansinnott","followers_url":"https://api.github.com/users/iansinnott/followers","following_url":"https://api.github.com/users/iansinnott/following{/other_user}","gists_url":"https://api.github.com/users/iansinnott/gists{/gist_id}","starred_url":"https://api.github.com/users/iansinnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iansinnott/subscriptions","organizations_url":"https://api.github.com/users/iansinnott/orgs","repos_url":"https://api.github.com/users/iansinnott/repos","events_url":"https://api.github.com/users/iansinnott/events{/privacy}","received_events_url":"https://api.github.com/users/iansinnott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-31T23:26:08Z","updated_at":"2015-07-24T18:00:31Z","closed_at":null,"body":"Can we add an option to support JSX? I know Emmet already has support for `className` expansion but it doesn't always work.\r\n\r\nThis relates directly to #255 (Thanks for adding that feature btw!). Currently JSX expansion doesn't work with standard `.js` files. Since it's possible to write JSX in files with different extensions (`.js`, `.jsx`, etc) it would be great if there was an option allow JSX expansion regardless of file extension.\r\n\r\nSomething like:\r\n```vim\r\nlet g:user_emmet_jsx = 1\r\n```"},"comment":{"url":"https://api.github.com/repos/mattn/emmet-vim/issues/comments/124600292","html_url":"https://github.com/mattn/emmet-vim/issues/265#issuecomment-124600292","issue_url":"https://api.github.com/repos/mattn/emmet-vim/issues/265","id":124600292,"user":{"login":"iansinnott","id":3154865,"avatar_url":"https://avatars.githubusercontent.com/u/3154865?v=3","gravatar_id":"","url":"https://api.github.com/users/iansinnott","html_url":"https://github.com/iansinnott","followers_url":"https://api.github.com/users/iansinnott/followers","following_url":"https://api.github.com/users/iansinnott/following{/other_user}","gists_url":"https://api.github.com/users/iansinnott/gists{/gist_id}","starred_url":"https://api.github.com/users/iansinnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iansinnott/subscriptions","organizations_url":"https://api.github.com/users/iansinnott/orgs","repos_url":"https://api.github.com/users/iansinnott/repos","events_url":"https://api.github.com/users/iansinnott/events{/privacy}","received_events_url":"https://api.github.com/users/iansinnott/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T18:00:31Z","updated_at":"2015-07-24T18:00:31Z","body":"Hey @duteng, actually no I never solved this. It would be worth solving, I just sort of forgot about it... I ended up crating a function that would replace all occurances of `class` with `className`:\r\n\r\n```vim\r\n\" This is used exclusively for React.js. It will replace all occurances of\r\n\" class= with className=\r\nfunction! FixClassNames()\r\n  :%s/\\vclass\\=/className\\=/g\r\nendfunction\r\ncommand! FixClassNames call FixClassNames()\r\n\r\n```"}}