how to implement slik slider carousel in react.js code example
Example 1: slick slider react
import React, { Component } from "react";
import Slider from "react-slick";
export default class SimpleSlider extends Component {
render() {
const settings = {
dots: true,
infinite: true,
speed: 500,
slidesToShow: 2,
slidesToScroll: 1
};
return (
Single Item
1
2
3
4
5
6
);
}
}
Example 2: react slick
import React, { Component } from "react";
import Slider from "react-slick";
export default class SimpleSlider extends Component {
render() {
const settings = {
dots: true,
infinite: true,
speed: 500,
slidesToShow: 3,
slidesToScroll: 1
};
return (
Single Item
1
2
3
4
5
6
);
}
}