13 ms·
> Yes but good luck with React.createElement(). React without JSX is really a pain to use (or Preact, Inferno, etc). What's painful about it? I prefer it witho
by kbp 8y ago
> Yes but good luck with React.createElement(). React without JSX is really a pain to use (or Preact, Inferno, etc).
What's painful about it? I prefer it without JSX, personally; JSX is a pretty
simple syntax transform that doesn't really gain you anything that I can see,
makes manipulating props a lot clumsier, and needs extra tooling. Most of the
time it's almost identical with or without JSX, but when there is a
difference, I've always found without to be smoother and clearer. You
definitely want to assign React.createElement a shorter name, though.