Re:React v17.0 Release Candidate: No New Features
by jameslk on Monday August 10, 2020 @09:24PM
(#24116276)
While not as sexy, you can do:
There's a lot of "gets you most of the way there" hacks with JSX that will fill most needs. Where as you can imagine the incredible cacophony of screaming developers who maintain TypeScript, Preact, IDEs, etc. that would be incensed by breaking changes to JSX introduced just to solve some inconveniences.
[ Parent
| on HN ]
Re:React v17.0 Release Candidate: No New Features
by acemarke on Monday August 10, 2020 @10:08PM
(#24116510)
Trust me, I'm well aware of both of those facts :)
Doesn't mean the syntax _can't_ change . After all, the `<>` shorthand syntax for fragments was added via cooperation with the Babel and TypeScript teams, and the work on the new `jsx()` replacement for `createElement()` is going the same way.