You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forgive my ignorance but why does the example from the README
// example.tsx
import * as elements from 'typed-html';
const w = 'world';
const helloWorld = <p>Hello <strong>{w}</strong></p>;
typeof helloWorld; // => Just a string of course
yield a string? Wouldn't it make more sense for helloWorld to be of type HTMLElement, so that
it can be easily appended to existing DOM elements?
everything's type-safe and one could do introspection on those HTMLElements?
The text was updated successfully, but these errors were encountered:
Forgive my ignorance but why does the example from the README
yield a string? Wouldn't it make more sense for
helloWorld
to be of typeHTMLElement
, so thatThe text was updated successfully, but these errors were encountered: