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

Method constructor

src/Carousel.js:61–76  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

59
60class Carousel extends React.Component {
61 constructor(props) {
62 super(props);
63 this.handleKeyPress = this.handleKeyPress.bind(this);
64 this.renderItems = this.renderItems.bind(this);
65 this.hoverStart = this.hoverStart.bind(this);
66 this.hoverEnd = this.hoverEnd.bind(this);
67 this.handleTouchStart = this.handleTouchStart.bind(this);
68 this.handleTouchEnd = this.handleTouchEnd.bind(this);
69 this.touchStartX = 0;
70 this.touchStartY = 0;
71 this.state = {
72 activeIndex: this.props.activeIndex,
73 direction: 'end',
74 indicatorClicked: false,
75 };
76 }
77
78 componentDidMount() {
79 // Set up the cycle

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected