Additional Configuration
Estimated reading time: less than 1 minuteFormatting HTML output
Kita Html emits compact HTML strings with no whitespace or indentation. If you need pretty-printed output for debugging or readability, use html-prettify.
Legacy JSX transform
Kita Html can be used with the older jsx: "react" transform instead of
jsx: "react-jsx". This requires manually importing the Html namespace in every file
that uses JSX.
This approach has a slight performance penalty because TypeScript generates
Html.createElement calls with rest parameters for children, rather than the optimized
jsx/jsxs calls of the modern transform. Use the react-jsx transform unless you have
a specific reason not to.