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

Function Link

src/__tests__/Button.spec.js:17–23  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

15
16 it('should render custom element', () => {
17 function Link(props) {
18 return (
19 <a href="/home" {...props}>
20 {props.children}
21 </a>
22 );
23 }
24 render(<Button tag={Link}>Home</Button>);
25 expect(screen.getByText(/home/i).tagName.toLowerCase()).toBe('a');
26 });

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…