Last active
October 18, 2023 17:34
-
-
Save 8ctopotamus/74935244e8df44346d7b49d145e49e83 to your computer and use it in GitHub Desktop.
Display data in React, kinda like PHP's var_dump();
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dataDump = props => <pre>{JSON.stringify(props, null, 2)}</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When we can see the data by using console.log(), then why do we need this?