Dump helper component for React
17 April 2022 (Updated 19 September 2022)
Sometimes, you want to see a dump of some data in React, ideally in a pretty format. Here’s a little component that can help:
Now, you can use it like this:
If you want the dump data to be expanded by default, add the expanded
attribute:
This should give you something like this:
Tailwind version
Tagged:
React tooling
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment