MCPcopy
hub / github.com/adobe/react-spectrum / Example

Function Example

packages/react-aria/test/interactions/focusSafely.test.js:34–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 setInteractionModality('virtual');
33
34 const Example = () => <button>Button</button>;
35 const {unmount} = render(<Example />);
36
37 const button = document.body.querySelector('button');
38
39 requestAnimationFrame(() => {
40 unmount();

Callers

nothing calls this directly

Calls 5

focusSafelyFunction · 0.90
actFunction · 0.85
removeMethod · 0.65
renderFunction · 0.50
removeChildMethod · 0.45

Tested by

no test coverage detected