'use client'; import * as React from 'react'; import { Flex } from '@joy-ui/react'; import { useRenderElement } from '@base-ui-components/react'; import './page.css'; import './perf-test.css' export default function Home() { const [show, setShow] = React.useState(false) return (

Test

{show && }
); } function Button(props: any) { const { render, className, ...otherProps } = props; otherProps.className = 'Button' const state = React.useMemo( () => ({ open: true, side: 'bottom', align: 'left', uncentered: true, }), [], ); const element = useRenderElement('button', props, { state, props: otherProps, }); return element; } function Wrapper() { return (
{Array.from({ length: 10 }).map((i) =>
)}
) }