Getting an error of Objects are not valid as a React child"

Error: Objects are not valid as a React child (found: object with keys {username}). If you meant to render a collection of children, use an array instead.