Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

128
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda