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

156
Vistas
How to dynamically create arrays in state?

I wanted to create dynamic blocks with the addition of files, but due to the fact that the files have a common state, the files are added to all blocks, and I do not understand how to make a separate array with the files of this block created when a file is added to a separate block, and this array of files was added to one common state, for the second day I can not figure out how to do this, I put in a working violin, I ask for help with advice, or show how this can be done in practice

my wrong option: https://codesandbox.io/s/trusting-cdn-oqt6l?from-embed=&file=/src/addedFiles.js

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

0

I've made some changes.

https://codesandbox.io/s/pedantic-frog-rrpxh?from-embed=&file=/src/MyDropzone.js

Is not fully visually finished but the logic you asked it's working.

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