Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

151
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda