79352978

Date: 2025-01-13 17:21:39
Score: 1
Natty:
Report link

You are rendering a object with props, and this is not permitted in react, but this is simple to resolve, you can resolve this with two ways.

  1. if this is a simple object, you can take the property of this object, ex:

User: {

Triggering the error: User

correct way: User.name

  1. the other way you can resolve this is when your object is a array of objects, so you can resolve with a simple mapping, ex:

Users: [ {

you can resolve with a Users.map(user => ({{user.name}}).

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gabriel Henrique