MCPcopy Index your code
hub / github.com/adobe/react-spectrum / Component

Function Component

packages/react-aria/test/utils/mergeProps.test.jsx:97–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 let Spy = jest.fn(props => <div {...props} />);
96
97 const Component = () => {
98 let id1 = 'id1';
99 let id2 = useId('id2');
100
101 mergeProps({id: id1}, {id: id2});
102
103 return <Spy id={id2} />;
104 };
105
106 render(<Component />);
107

Callers

nothing calls this directly

Calls 2

useIdFunction · 0.90
mergePropsFunction · 0.90

Tested by

no test coverage detected