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

123
Views
Get data attributes by passing its ID in React

i'm new into React and I have a problem that I don't know how to solve - after loading page I'm storing pretty big data in Redux toolkit - an array of objects. Each object has its own id.

Next, after some user action, i'm getting the object ID and I need to get data from it - I think that every user click, mapping the whole array and find the item with correct ID isn't the most effective way. Is it possible to create something that would give me the info about the object stored in Redux by passing it's ID without mapping whole array? Something like -

getDataFromId(id) - and it would return object's data.

What is the most effective way to deal with problems like that?

about 4 years ago · Juan Pablo Isaza
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!