3 ms·
There are a lot of libraries to it more readable: https://blog.bloomca.me/2019/02/23/alternatives-to-jsx.html https://blog.bloomca.me/2019/02/23/alternatives-t
by Zarel 6y ago
There are a lot of libraries to it more readable:
https://blog.bloomca.me/2019/02/23/alternatives-to-jsx.html https://blog.bloomca.me/2019/02/23/alternatives-to-jsx.html
If you don't want to use any of them, convention is to use:
const h = React.createElement;
I don't know of anyone who actually uses `React.createElement` directly.
Personally, with all the other things needing a transpile step (TypeScript, and support for older browsers), I've just gotten used to having one in every project nowadays.