I have a response like this:
I want to display the name of each object inside this HTML:
{subjects.map((item, i) => (
I use the below Object.entries to easily output the key and the value:
Object.entries
{Object.entries(someObject).map(([key, val], i) => ( {key}: {val} ))}
{key}: {val}