MCPcopy Index your code
hub / github.com/reactstrap/reactstrap / renderItems

Method renderItems

src/Carousel.js:204–217  ·  view source on GitHub ↗
(carouselItems, className)

Source from the content-addressed store, hash-verified

202 }
203
204 renderItems(carouselItems, className) {
205 const { slide } = this.props;
206 return (
207 <div className={className}>
208 {carouselItems.map((item, index) => {
209 const isIn = index === this.state.activeIndex;
210 return React.cloneElement(item, {
211 in: isIn,
212 slide: slide,
213 });
214 })}
215 </div>
216 );
217 }
218
219 render() {
220 const { cssModule, slide, className, dark, fade } = this.props;

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected