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

155
Views
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 answers
Answer question

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 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!