Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

157
Views
how to work carousol this react bootstarp componenet?

here is my react bootstart carosol code.plese solve this problem

          <Carousel>
            <Carousel.Item>
                <img
                    className="d-block w-100" style={{ height: '500px' }}
                    src={img2}
                    alt="First slide"
                />
              
                </Carousel>``
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Carousel component slides images, which you provide. Of course it only make sense, if you provide at least two of them, not only one.

Also, in your code snippet you are missing the closing tag for Carousel.Item:

<Carousel>
    <Carousel.Item>
        <img
            className="d-block w-100" style={{ height: '500px' }}
            src={img1}
            alt="First slide"
        />
    </Carousel.Item>
    <Carousel.Item>
        <img
            className="d-block w-100" style={{ height: '500px' }}
            src={img2}
            alt="Second slide"
        />
    </Carousel.Item>
    ...
</Carousel>

If it's still not working, please make sure you are importing your images correctly. Do you see the image when you only paste following code?

<img
    className="d-block w-100" style={{ height: '500px' }}
    src={img1}
    alt="First slide"
/>

If not, then the problem is not the Carousel component, but your images.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!