The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Dump An Object In React

TODO: Pull subtitle into page object

Use this snippet:

code_start_default_section code_end_default_section

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Dump An Object In React

-- p

Use this snippet:

-- code/
-- javascript

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

-- /code

-- p

To replace this:

-- code/
-- javascript

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

-- /code

-- p

When you get errors like:

-- code/

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

-- /code


-- categories
-- React

-- metadata
-- date: 2021-09-06 20:24:47
-- id: 20eorbnv
-- status: published
-- type: post
-- SCRUBBED_NEO: false
-- site: aws