Profile picture
Jason Miller 🦊⚛ @_developit
, 6 tweets, 2 min read Read on Twitter
It's inspiring to hear about so many folks using htm to build without tools.

This little library has had more of an impact than I would have thought!

github.com/developit/htm
The next step for htm is to roll over to a custom parser. Right the parser is essentially 1:1 with JSX, which means this is a breaking change.
There's also an option to move to a custom HTML parser. I might run a poll next week to determine what people prefer.
I also want to explore the possibilities of transpiling on-the-fly from JSX to HTM, since the syntax is so similar. With the new parser in place, I'm betting a transform could be written as a clever regex.
I've been doing a bit of benchmarking for these formats and haven't yet been able to come to a conclusion. HTM is a one-time cost of ~500b, but each html`` section is no trivially smaller than the equivalent hyperscript function calls compiled from JSX.
There's more than wire cost at play here though, and parse+compile times for tagged templates might be sticking out as an area to explore for the V8 team.
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Jason Miller 🦊⚛
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member and get exclusive features!

Premium member ($30.00/year)

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!