A carousel for the mobile web
npm install react-carousel
Check it out on a mobile device:
http://dogfessional.github.io/react-carousel/
var Carousel = require('react-carousel');
var SampleComponent = React.createClass({
render: function () {
return (
<Carousel>
<img src="http://fillmurray.com/300/300" />
<img src="http://fillmurray.com/600/300" />
<img src="http://fillmurray.com/100/300" />
<img src="http://fillmurray.com/400/300" />
<img src="http://fillmurray.com/200/300" />
</Carousel>
)
}
});
Carousel does not take any props.
The children in carousel are used to provide a carousel-like experience by allowing people to flip through each element one by one.
MIT