A
A
AlexAdekvat2020-10-27 19:07:07
Slider
AlexAdekvat, 2020-10-27 19:07:07

How to disable auto-slider in Carousel Bootstrap in React?

import React from 'react';
import { Carousel } from 'react-bootstrap';
import Project2 from './../../image/Project2.png'
import project1 from './../../image/project1.jpg'

class Projects extends React.Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <Carousel >
                <Carousel.Item  >
                    <img className="d-block w-100" src={Project2} />
                </Carousel.Item>
                <Carousel.Item >
                    <img className="d-block w-100" src={project1} />
                </Carousel.Item>
            </Carousel>
        )
    }
}

export default Projects

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question