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.

Dump An Object In React

Use this snippet :

javascript
return (
    <div>
        <pre>{JSON.stringify(someObject, null, 2)}</pre>
    </div>
)

To replace this :

javascript
return (
    <div>
        {someData}
    </div>
)

When you get errors like :

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

Call Stack
throwOnInvalidObjectType