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

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