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

Method render

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

Source from the content-addressed store, hash-verified

2690 }
2691
2692 render() {
2693 return (
2694 <div>
2695 <Form onSubmit={(e) => e.preventDefault()}>
2696 <FormGroup>
2697 <Label for="backdrop">Backdrop value</Label>{' '}
2698 <Input
2699 type="select"
2700 name="backdrop"
2701 id="backdrop"
2702 onChange={this.changeBackdrop}
2703 >
2704 <option value="true">true</option>
2705 <option value="false">false</option>
2706 <option value="static">"static"</option>
2707 </Input>
2708 </FormGroup>{' '}
2709 <Button color="danger" onClick={this.toggle}>
2710 {this.props.buttonLabel}
2711 </Button>
2712 </Form>
2713 <Modal
2714 isOpen={this.state.modal}
2715 toggle={this.toggle}
2716 className={this.props.className}
2717 backdrop={this.state.backdrop}
2718 container={this.element}
2719 >
2720 <ModalHeader toggle={this.toggle}>Modal title</ModalHeader>
2721 <ModalBody>
2722 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
2723 eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
2724 ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
2725 aliquip ex ea commodo consequat. Duis aute irure dolor in
2726 reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
2727 pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
2728 culpa qui officia deserunt mollit anim id est laborum.
2729 </ModalBody>
2730 <ModalFooter>
2731 <Button color="primary" onClick={this.toggle}>
2732 Do Something
2733 </Button>{' '}
2734 <Button color="secondary" onClick={this.toggle}>
2735 Cancel
2736 </Button>
2737 </ModalFooter>
2738 </Modal>
2739 </div>
2740 );
2741 }
2742}
2743
2744class ModalExample74 extends React.Component<any, any> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected