Skip to content
Myr

page-preact.tsx

This file

Path

benchmarks/jsx/src/react-jsx/page-preact.tsx

36 lines · 979 bytes · TypeScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than f0b094d point at it.

Merge commit from forkYusuke Wadabefore adoptionf0b094d

lines 1–36why, one step back
1/** @jsxImportSource preact **/
23export const buildPage = () => {4 const Content = () => (5 <>6 <p id='a' class='class-name'>7 1<br />a8 </p>9 <p id='b' class='class-name'>10 2<br />b11 </p>12 <div dangerouslySetInnerHTML={{ __html: '<p id="c" class="class-name">3<br/>c</p>' }} />13 {null}14 {undefined}15 </>16 )1718 const Form = () => (19 <form>20 <input type='text' value='1234567890 < 1234567891' readonly tabindex={1} />21 <input type='checkbox' value='1234567890 < 1234567891' checked={true} tabindex={2} />22 <input type='checkbox' value='1234567890 < 1234567891' checked={true} tabindex={3} />23 <input type='checkbox' value='1234567890 < 1234567891' checked={false} tabindex={4} />24 <input type='checkbox' value='1234567890 < 1234567891' checked={false} tabindex={5} />25 </form>26 )2728 return () => (29 <html>30 <body>31 <Content />32 <Form />33 </body>34 </html>35 )36}