How about adding a util in order to visually debug components ? #398
Replies: 2 comments 1 reply
-
Hi @DecampsRenan , I love the idea! Do you mind opening a PR? On the things to improve, it could be great to make it work only with |
Beta Was this translation helpful? Give feedback.
1 reply
-
Closed, see why here: #400 TLDR: we don't use this utility anymore, and don't want to maintain something we don't use :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes I need to see (this is important) what place take a component, where it is and see some data attached to it
Usually I do that with a bg: red or by adding some borders, but it is tedious
So I created a small util which do that for us :
debugComponent()
.The usage is simple:
And it will render like this by default:
We have some options we can tweak to show infos if needed:
Which will render like this:
And without the label:
Let me know if you find it usefull to add or if it is really specific in my case ^^
The utils is implemented like this:
Things to improve
Beta Was this translation helpful? Give feedback.
All reactions