0

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.

Mohsin Ali
  • 360
  • 2
  • 12
  • why not use any of the available `console` methods in your code and simply log your state? – tromgy Mar 04 '22 at 19:10
  • @tromgy I'm not the web app owner, I'm doing scrapping – Mohsin Ali Mar 04 '22 at 19:16
  • React has an internal hook `window.__REACT_DEVTOOLS_GLOBAL_HOOK__` which you should set in [page context](/a/9517879) at `document_start`. Read the source code of React Devtools to see how it configures the hook. – wOxxOm Mar 05 '22 at 10:20

0 Answers0