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