Skip to content
Myr

feat(jsx/precompile): Normalization and stringification of attribute values as `renderToString` (#3432)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* feat(jsx/precompile): Normalization and stringification of attribute values as `renderToString` * fix(jsx/precompile): boolean attributes are processed by compiler * test: fix test data for jsx (precompile and react-jsx) * fix(jsx/precompile): remove unnecessary import statement * refactor(jsx/precompile): Normalization of keys from JSX to HTML is done by runtime, not by hono

authored by Taku Amano · committed by GitHub · parent 27961dc · Browse files · 3 files+91 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+91 added−7 removed

  • tests:+54 added−0 removed
  • other:+37 added−7 removed

3 files+91 added−7 removed

modified:runtime-tests/deno-jsx/jsx.test.tsx+54 added
modified:src/jsx/base.ts+1 added-1 removed
60 unmodified lines
61 'source',62 'track',63 'wbr',64]65const booleanAttributes = [65export const booleanAttributes = [66 'allowfullscreen',67 'async',68 'autofocus',69 'autoplay',
350 unmodified lines
modified:src/jsx/jsx-runtime.ts+36 added-6 removed