UNPKG

react-bootify

Version:
38 lines (29 loc) 772 B
### Example ```js import {Tag, Button, Alert} from 'react-bootify'; class Sample extends React.Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = {}; this.state.show = false; } toggle() { this.setState({show:!this.state.show}); } render() { return ( <Tag> <Button display='block' onClick={this.toggle}>Toggle</Button> <Tag tag='br'/> <Fade timeout={100} show={this.state.show}> <Alert dismiss={this.toggle}> Pax vobiscum </Alert> </Fade> </Tag> ); } }; <Sample/> ```