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

Function Example

stories/examples/Fade.js:4–19  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

2import { Button, Fade } from 'reactstrap';
3
4function Example(props) {
5 const [fadeIn, setFadeIn] = useState(true);
6
7 const toggle = () => setFadeIn(!fadeIn);
8
9 return (
10 <div>
11 <Button color="primary" onClick={toggle}>
12 Toggle Fade
13 </Button>
14 <Fade in={fadeIn} tag="h5" className="mt-3">
15 This content will fade in and out as the button is pressed
16 </Fade>
17 </div>
18 );
19}
20
21export default Example;

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…