Reading metadata programatically

I am trying to read my API metadata in a React app. I had a look at the useMetadata() Vue code but I am not familiar with Vue and couldn’t quite see how to translate it or how exactly it’s populated.

What is easiest way for me to get the meta data object in React?

You can fetch the metadata json from /metadata/app.json