Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Objects are not valid as a React child. If you meant to render a collection of children, use an array instead

return (
    <div className="col">
      <h1>Mi Casa</h1>
      <p>This is my house y&apos;all!</p>
      {homes.map(home => <div>{home.name}</div>)}
    </div>
  );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Objects #valid #React #If #meant #render #collection #array
ADD COMMENT
Topic
Name
4+3 =