Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Print Out An Object In React With JSONstringify

TODO : Fix the formatting of this post that got busted during the move to nextjs

If you get this when you're trying to print out an object with something like:

``jsx
<div>{exampleObject}</div>
``

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

Use this:

``jsx
<div>{JSON.stringify(exampleObject)}</div>
``