Uncaught Error: Objects are not valid as a React child
(found: object with keys {id, Follow}).
If you meant to render a collection of children, use an array instead.
An error occurs because an attempt was made to render the object data as it is.
example..
return (
<>
{compoundinfo}
so how to solution this error ??
you can solution by bringing certain attribute of information array
return (
<>
{compoundinfo["name"]