(props)
| 2 | import { Button, Fade } from 'reactstrap'; |
| 3 | |
| 4 | function 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 | |
| 21 | export default Example; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…