This happens when you render on the server side. Thus, React code is not accessible to the browser, try to make it on the client side. Example: in Webpack, if you use the application in dev-server mode, for example
webpack-dev-server
on the React tab of Chrome Developer tools, you’ll see “Search for an answer” change your URL from
localhost:
to
localhost:
Your React tab is loading, I showed it for webpack, it is common for everyone to run it on the client side.
source share