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

109
Vistas
How to store objects in react project?

I have a static website that I’m building.

I have a component built using react. And would like to use different information in them. And also use the component on different pages.

I have the option of making a file and throwing all of my objects in there. But it’s somewhat hard to read.

Any alternatives?

Objects.js

Export data1 = [
 {
   Name: Shelly,
   Age:32,
   City:Kansas City
  },
 {
   Name: Michael,
   Age:43,
   City:New York
  },
  ... (hundreds more)
]

Export data2 = [{
 …same structure but needs to be separate from data1
}]

Note Page A will use data 1 page b will use data 2

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