MCPcopy Index your code
hub / github.com/flyfloor/react-component / render

Method render

demo/example/CarouselDemo.jsx:17–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16export default class CarouselDemo extends React.Component {
17 render() {
18 let items = [];
19
20 let prev = <h4>&lt;&lt;</h4>;
21 let next = <h4>&gt;&gt;</h4>;
22 return (
23 <div>
24 <h3>Carousel</h3>
25 <ul className="two carousel-demo">
26 <li>
27 <h4>Default carousel</h4>
28 <Carousel>{imgNodes}</Carousel>
29 <pre>
30 <code>
31 {'<Carousel>'}
32 <br/>
33 {' <img key={1} src=""/>'}
34 <br/>
35 {' <img key={2} src=""/>'}
36 <br/>
37 {' ...'}
38 <br/>
39 {'</Carousel>'}
40 </code>
41 </pre>
42 </li>
43 <li>
44 <h4>Auto play carousel</h4>
45 <Carousel autoPlay={true} delay={3000}>
46 {imgNodes}
47 </Carousel>
48 <pre>
49 <code>
50 {'<Carousel> autoPlay={true} delay={3000}>'}
51 <br/>
52 {' <img key={1} src=""/>'}
53 <br/>
54 {' <img key={2} src=""/>'}
55 <br/>
56 {' ...'}
57 <br/>
58 {'</Carousel>'}
59 </code>
60 </pre>
61 </li>
62 <li>
63 <h4>Carousel with control arrows</h4>
64 <Carousel showArrow={true}>
65 {imgNodes}
66 </Carousel>
67 <pre>
68 <code>
69 {'<Carousel> showArrow={true}>'}
70 <br/>
71 {' <img key={1} src=""/>'}
72 <br/>
73 {' <img key={2} src=""/>'}
74 <br/>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected