Skip to content

Instantly share code, notes, and snippets.

@8ctopotamus
Last active October 18, 2023 17:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save 8ctopotamus/74935244e8df44346d7b49d145e49e83 to your computer and use it in GitHub Desktop.
Save 8ctopotamus/74935244e8df44346d7b49d145e49e83 to your computer and use it in GitHub Desktop.
Display data in React, kinda like PHP's var_dump();
const dataDump = props => <pre>{JSON.stringify(props, null, 2)}</pre>
@Saalim95
Copy link

Saalim95 commented Sep 1, 2020

When we can see the data by using console.log(), then why do we need this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment