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

Method componentDidMount

src/Carousel.js:78–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 componentDidMount() {
79 // Set up the cycle
80 if (this.props.ride === 'carousel') {
81 this.setInterval();
82 }
83
84 // TODO: move this to the specific carousel like bootstrap. Currently it will trigger ALL carousels on the page.
85 document.addEventListener('keyup', this.handleKeyPress);
86 }
87
88 static getDerivedStateFromProps(nextProps, prevState) {
89 let newState = null;

Callers

nothing calls this directly

Calls 1

setIntervalMethod · 0.95

Tested by

no test coverage detected