4 ms·
lit-html is great although at $DAYJOB we ran into some issues with missing linting on them. We now use a JSX renderer that emits plain HTML strings. You get a
by mappu 4y ago
lit-html is great although at $DAYJOB we ran into some issues with missing linting on them.
We now use a JSX renderer that emits plain HTML strings.
You get all the ergonomics, the IDE assistance of checking for typos in your attributes, ensuring your closing tags line up, and webpack can flatten it back to plain HTML at compile-time for no run-time __jsx / React.createElement() calls.
- e111077 4y agoNot sure if you're aware of it, or saying it's missing features, but lit-analyzer adds compile-time linting and type checking while lit-plugin provides IDE integration of the tool