3

I am looking to find a way to capture/scrape react web app state's data from the browser console without using react dev tools.

3
  • why not use any of the available console methods in your code and simply log your state? Commented Mar 4, 2022 at 19:10
  • @tromgy I'm not the web app owner, I'm doing scrapping Commented Mar 4, 2022 at 19:16
  • 1
    React has an internal hook window.__REACT_DEVTOOLS_GLOBAL_HOOK__ which you should set in page context at document_start. Read the source code of React Devtools to see how it configures the hook. Commented Mar 5, 2022 at 10:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.