1

I have an API that returns a list of accounts that looks like:

[
  {
    "_id": "61f9da9fcc6888f201f722cb",
    "firstName": "joe",
    "lastName": "joer",
    "email": "joe@outlook.com",
    "paid": "5700",
    "status": "active",
    "amount": "5600"
  },
  {
    "_id": "61f9db77cc6888f201f722cc",
    "firstName": "pete",
    "lastName": "peterson",
    "email": "peterson@gmail.com",
    "piad": "599",
    "status": "inactive",
    "amount": "0"
  },
]

I want to be able to request an individual object in the array by searching by attribute, i.E email, first/last name. How would I go about this in react?

Sam
  • 232
  • 1
  • 9

0 Answers0