Nothing's stopping you from writing react components using React.createElement everywhere. Everything will work the same. You won't have "HTML in your JS", so you'll be happy.
Your only trade-offs would be a less maintainable codebase and longer developing time.
I really don't understand the argument against using JSX...
Nothing's stopping you from writing react components using React.createElement everywhere. Everything will work the same. You won't have "HTML in your JS", so you'll be happy.
Your only trade-offs would be a less maintainable codebase and longer developing time.
I really don't understand the argument against using JSX...
Assigning
React.createElement
to a variable with a short name is also a valid approach: