Skip to content
Myr

page-react.tsx

This file

Path

benchmarks/jsx/src/page-react.tsx

37 lines · 1.0 KiB · 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–37why, one step back
1/** @jsx jsx */
2/** @jsxFrag Fragment */34export const buildPage = ({ jsx, Fragment }: { jsx: any; Fragment: any }) => {5 const Content = () => (6 <>7 <p id='a' className='class-name'>8 1<br />a9 </p>10 <p id='b' className='class-name'>11 2<br />b12 </p>13 <div dangerouslySetInnerHTML={{ __html: '<p id="c" class="class-name">3<br/>c</p>' }} />14 {null}15 {undefined}16 </>17 )1819 const Form = () => (20 <form>21 <input type='text' value='1234567890 < 1234567891' readOnly tabIndex={1} />22 <input type='checkbox' value='1234567890 < 1234567891' defaultChecked={true} tabIndex={2} />23 <input type='checkbox' value='1234567890 < 1234567891' defaultChecked={true} tabIndex={3} />24 <input type='checkbox' value='1234567890 < 1234567891' defaultChecked={false} tabIndex={4} />25 <input type='checkbox' value='1234567890 < 1234567891' defaultChecked={false} tabIndex={5} />26 </form>27 )2829 return () => (30 <html>31 <body>32 <Content />33 <Form />34 </body>35 </html>36 )37}