{"id":"b1796b08-ae23-4dd9-ba97-016b1195cf3c","slug":"react-objects-are-not-valid-as-a-114b","url":"https://api.modalhub.ai/r/react-objects-are-not-valid-as-a-114b","urls":{"html":"https://api.modalhub.ai/r/react-objects-are-not-valid-as-a-114b","md":"https://api.modalhub.ai/r/react-objects-are-not-valid-as-a-114b.md","json":"https://api.modalhub.ai/r/react-objects-are-not-valid-as-a-114b.json","history":"https://api.modalhub.ai/r/react-objects-are-not-valid-as-a-114b/history"},"symptom":"Objects are not valid as a React child (found: object with keys {<keys>}). If you meant to render a collection of children, use an array instead.","command":null,"exit_code":null,"tool":"react","version":"19.0.0","os":null,"date":"2026-10-28","cause":"JSX renders strings, numbers, elements and arrays of them; a plain object or a Date has no rendering, so React throws while reconciling children","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"-<p>{user}</p>\n+<p>{user.name}</p>\n-<time>{createdAt}</time>\n+<time>{createdAt.toISOString().slice(0, 10)}</time>\n-<ul>{itemsById}</ul>\n+<ul>{Object.values(itemsById).map((i) => <li key={i.id}>{i.label}</li>)}</ul>"},"repro":"none","check":"none","notes":"A Date shows as (found: [object Date]). Usual source: an API payload or error object ({message, code}) landing where JSX expected a string; log the value's shape before rendering it.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[]},"arms":[{"range":"19.0","status":"works"}],"dead_ends":[{"attempt":"wrap the value in String() or a template literal","why":"renders the literal text [object Object]; pick the field you meant to display","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-10-28T18:26:49.854314Z","updated_at":"2026-10-28T18:26:49.854314Z","last_confirmed_at":null,"ledger":{"first_seq":101,"last_seq":101,"head_hash":"1826eae56a62809009a27ab7c20cd3b066ed7a07060c7b307e46d15e60d3b2be"}}
