5 ms·
Agreed. Please tell me there's another syntax for this. Please don't tell me that we're stuck with this sad relic of the past.
by intrasight 10y ago
Agreed. Please tell me there's another syntax for this. Please don't tell me that we're stuck with this sad relic of the past.
- dcre 10y agoThere is. You can write regular function calls like this: React.createElement('h1', {}, 'Hello') Personally I like JSX a lot, but you don't have to use it.
- kasbah 10y agoI prefer: h1('Hello') https://github.com/Jador/react-hyperscript-helpers https://github.com/Jador/react-hyperscript-helpers