DEV Community

Discussion on: React Without JSX, t7 To The Rescue!

Collapse
 
antjanus profile image
Antonin J. (they/them)

This is really cool! I have a few questions for you:

  1. Can you specify a different method of element creation? Eg. instead of using React.createElement, being able to pass in Preact's h?
  2. What's the performance like? I feel like it must be pretty good especially compared to the old school in-browser JSX compilation.
  3. Do you have this on a CDN anywhere? I think this is would be awesome for using in CodePen or similar rapid prototyping tools

I'm a huge fan of this! :)

Collapse
 
toomim profile image
Michael Toomim

Performance looks like it might have issues:

It's highly recommended that the t7-precompiler is used when deploying to a production environment. The precompiler will greatly reduce memory usage, startup speeds and template compile times.

github.com/trueadm/t7#performance

But I would really like to see this measured to know if it's a problem in practice.

Collapse
 
kayis profile image
K

I also read HTM, an alternative to t7, has that recommendation from its creators.

Thread Thread
 
toomim profile image
Michael Toomim

Can you post a link please?

Thread Thread
 
kayis profile image
K