react icon indicating copy to clipboard operation
react copied to clipboard

[DevTools Bug]: Getting Component Tree from my code

Open CH1NRU5T opened this issue 9 months ago • 1 comments

Website or app

https://github.com/facebook/react/issues/22540

Repro steps

Greetings, I am trying to get the component tree ( that react dev-tools show in the extension ) in my own code, and I want to send it to backend API server using an HTTP POST request. Any idea on how I can achieve this? I looked at using __REACT_DEVTOOLS_GLOBAL_HOOK__ but no luck yet.

Thank you

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

CH1NRU5T avatar May 21 '24 11:05 CH1NRU5T