Day: July 3, 2021
-
Populating data with React
If the file is local (eg. the file config/updates.json below): you can just import it: The constant ‘updatesData’ would give you a list of the data. You can put it as a prop in a component, map through it etc: If the data is external: where updatesData is a state. If you need it to…