MCPcopy Create free account
hub / github.com/adobe/react-spectrum / App

Function App

packages/react-aria-components/test/Menu.test.tsx:1796–1804  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1794 }
1795
1796 function App() {
1797 let container = React.useRef(null);
1798 return (
1799 <>
1800 <InfoMenu container={container} />
1801 <div ref={container} data-testid="custom-container" />
1802 </>
1803 );
1804 }
1805
1806 it('should render the menu in the portal container', async () => {
1807 let {getByRole, getByTestId} = render(<App />);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected