Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

255
Vistas
My react-simple-image-slider seams not working | ReactJS

Im having trouble with this Reactjs component. I have imported and installed the component, type in necessary code. But it appeared with a black slider Here is the code I imported:

import React from "react";
import "./Banner.css";
import SimpleImageSlider from "react-simple-image-slider";

const image = [
  { url: "./banner1.png" },
  { url: "./banner2.png" },
];

const Banner = () => {
  return (
    <>
      <SimpleImageSlider
        width={1920}
        height={1080}
        images={image}
        style={Banner.css}
        slideDuration={1}
        navStyle={1}
        showBullets
        Shownavs
      />
    </>
  )
}

export default Banner

Here is how it displayed

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

***Import like this it will work***
import image1 from './image1.jpg';
import image2 from './image2.jpg';
import image3 from './image3.jpg'

 const image = [
        { url: image1 }, 
        { url: image2 },
        { url: image3 }
    ];
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda