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

Method render

types/reactstrap-tests.tsx:2769–2817  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2767 }
2768
2769 render() {
2770 return (
2771 <div>
2772 <Button color="danger" onClick={this.toggle}>
2773 {this.props.buttonLabel}
2774 </Button>
2775 <Modal
2776 isOpen={this.state.modal}
2777 toggle={this.toggle}
2778 className={this.props.className}
2779 >
2780 <ModalHeader toggle={this.toggle}>Modal title</ModalHeader>
2781 <ModalBody>
2782 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
2783 eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
2784 ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
2785 aliquip ex ea commodo consequat. Duis aute irure dolor in
2786 reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
2787 pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
2788 culpa qui officia deserunt mollit anim id est laborum.
2789 <br />
2790 <Button color="success" onClick={this.toggleNested}>
2791 Show Nested Model
2792 </Button>
2793 <Modal isOpen={this.state.nestedModal} toggle={this.toggleNested}>
2794 <ModalHeader>Nested Modal title</ModalHeader>
2795 <ModalBody>Stuff and things</ModalBody>
2796 <ModalFooter>
2797 <Button color="primary" onClick={this.toggleNested}>
2798 Done
2799 </Button>{' '}
2800 <Button color="secondary" onClick={this.toggle}>
2801 All Done
2802 </Button>
2803 </ModalFooter>
2804 </Modal>
2805 </ModalBody>
2806 <ModalFooter>
2807 <Button color="primary" onClick={this.toggle}>
2808 Do Something
2809 </Button>{' '}
2810 <Button color="secondary" onClick={this.toggle}>
2811 Cancel
2812 </Button>
2813 </ModalFooter>
2814 </Modal>
2815 </div>
2816 );
2817 }
2818}
2819
2820class ModalExampleDestructuring extends React.Component<any, any> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected