3 ms·
JSXHint exists[1] and works well, and highlighting libraries exist[2]. Have you actually tried the syntax? It makes sense when used with React.js (which is quit
by grrowl 12y ago
JSXHint exists[1] and works well, and highlighting libraries exist[2]. Have you actually tried the syntax? It makes sense when used with React.js (which is quite lovely), as almost all of the new syntax exists within a render() function. It's also leaner syntactically than EMCAScript for XML, without introducing additional weirdness like "object.@items" selectors.
Work with both JSX and regular JS in React and you'll see why they're doing this.
[1]: https://github.com/STRML/JSXHint https://github.com/STRML/JSXHint
[2]: https://github.com/reactjs/sublime-react https://github.com/reactjs/sublime-react