MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / Link

Function Link

src/__tests__/DropdownItem.spec.js:36–42  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

34
35 it('should render custom element', () => {
36 function Link(props) {
37 return (
38 <a href="/home" {...props}>
39 {props.children}
40 </a>
41 );
42 }
43 render(<DropdownItem tag={Link}>Home</DropdownItem>);
44 expect(screen.getByText('Home')).toHaveAttribute('href', '/home');
45 expect(screen.getByText('Home').tagName.toLowerCase()).toMatch('a');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…