React-Objects are not valid as a React child Error

ash3767·2020년 7월 2일
0

react

목록 보기
15/41
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 ??

certain attribute

you can solution by bringing certain attribute of information array

return (
  <>
    {compoundinfo["name"]
profile
꾸준함이란 ... ?

0개의 댓글