Does anyone actually use vanilla JavaScript string literals for all their backend rendering?
But for any case where you’re basically going in the one direction, i.e. data -> DOM and not changing things once rendered it’s great.
Might help with some of those pain points
It uses tagged template literals to render to the DOM, so on the server side it could fall back to vanilla string interpolation.
EDIT: Yeah, looks like it's always worked that way. Maybe I was thinking of another lib.
https://github.com/styfle/react-server-example-tsx/blob/4586...