Hi,
I'm learning React. In the following component, I import a JS file (data.js), which looks like a JSON file which includes an object.
Inside t...
For further actions, you may consider blocking this person and/or reporting abuse
Use the
map()
Function. Also, there’s no need to use Component. Use functional components instead if you don’t need state. Here’s the full code:Great! Thanks a lot.