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

Method previous

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

Source from the content-addressed store, hash-verified

4649 }
4650
4651 previous() {
4652 if (this.animating) return;
4653 const nextIndex =
4654 this.state.activeIndex === 0
4655 ? this.items.length - 1
4656 : this.state.activeIndex - 1;
4657 this.setState({ activeIndex: nextIndex });
4658 }
4659
4660 goToIndex(newIndex: number) {
4661 if (this.animating) return;

Callers 2

handleKeyPressMethod · 0.80
handleTouchEndMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected