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

119
Vistas
Loading files on client-side react application

Good afternoon, I am trying to create a React (static) application, made of only on client-side. I do not need server. On client-side there are several images.. I would like to find a way in which the admin of the application is able to load images and to put them into public/img folder of react application. Is it possible to do something like that?

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

0

Create an assets folder inside src. That will be the folder where you store the images. See React: Adding Images, Fonts, and Files

/* Component.js */
import React from 'react';
import image from 'PathToAssetsFolder/img.png'; // Tell webpack this JS file uses this image

console.log(image); // PathToAssetsFolder/img.84287d09.png

function Header() {
  // Import result is the URL of your image
  return <img src={image} alt="Image" />;
}

export default Header;
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