felipeochoa / rjsx-mode

A JSX major mode for Emacs
https://github.com/felipeochoa/rjsx-mode
MIT License
641 stars 32 forks source link

Support for the React’s new fragment syntax #58

Closed mostafah closed 6 years ago

mostafah commented 6 years ago

React introduced fragments recently, along with a new JSX syntax for it: empty tags (<> and </>) are valid now. Its only difference with normal tags is that it does not accept any attributes. Support for this new syntax is being added to different tools and editors. It would be nice if rjsx-mode could support it too.

felipeochoa commented 6 years ago

Thanks -- I hadn't seen that. It should not be too challenging to add, but isn't a high priority right now. If anyone wants to send a PR, I'll gladly review/offer guidance, but won't to get to it myself before the end of the year, unfortunately

mostafah commented 6 years ago

I would work on this if I had any elisp experience. Nevertheless, I might try if I find time for it before you do.