page-react.tsx
This file
Path
benchmarks/jsx/src/react-jsx/page-react.tsx
36 lines 路 1014 bytes 路 TypeScript
Last changed by
Not known.
History of this fileTake it
12345678910111213141516171819202122232425262728293031323334353637/** @jsxImportSource react **/
export const buildPage = () => { const Content = () => ( <> <p id='a' className='class-name'> 1<br />a </p> <p id='b' className='class-name'> 2<br />b </p> <div dangerouslySetInnerHTML={{ __html: '<p id="c" class="class-name">3<br/>c</p>' }} /> {null} {undefined} </> )
const Form = () => ( <form> <input type='text' value='1234567890 < 1234567891' readOnly tabIndex={1} /> <input type='checkbox' value='1234567890 < 1234567891' defaultChecked={true} tabIndex={2} /> <input type='checkbox' value='1234567890 < 1234567891' defaultChecked={true} tabIndex={3} /> <input type='checkbox' value='1234567890 < 1234567891' defaultChecked={false} tabIndex={4} /> <input type='checkbox' value='1234567890 < 1234567891' defaultChecked={false} tabIndex={5} /> </form> )
return () => ( <html> <body> <Content /> <Form /> </body> </html> )}