score:-1
You can use a built-in extension: https://github.com/facebook/react/tree/main/packages/react-devtools
score:1
Use this guide https://github.com/facebook/react/tree/main/packages/react-devtools#usage-with-react-dom
- Install react-devtools globally or locally
# Yarn
yarn global add react-devtools
# NPM
npm install -g react-devtools
- Launch react-devtools by command in terminal:
react-devtools
Put this line to head tag in index.html/index.ejs/whatever you use and run your app
Enjoy
score:2
Maybe this is too late. But, I saw this thread in some other SO conversation (which I unfortunately cannot find now)
Essentially they suggest adding this to the body
of the iframe
'd application.
<script>
if (window.parent !== window) {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
}
</script>
This seems to work for my use-case which seems similar to what the OP mentioned.
Source: stackoverflow.com
Related Query
- Using react dev tools inside iframe [In Chrome]
- No timing breakdown in User Timing section in Performance tab in Chrome dev tools using React 16
- react dev tools not loading in Chrome browser
- Can I view/modify the Redux store using Chrome Dev Tools
- Using React Dev Tools with Preact
- React app / Chrome Dev Tools strange output: "in Startnull" - main.js: 42
- Render HTML inside a React app using iframe
- Prod build of React App allows React Dev Tools and show components in source tab inside Browser
- Minified React error #310; use the non-minified dev environment for full errors and additional helpful warnings using Chrome through Selenium in React
- Images Rerendering inside Styled Component when Chrome Dev Tools is open
- Can't select child-elements in chrome dev tools anymore when using an image overlay (card-img-overlay)
- Using async/await inside a React functional component
- React dev tools - Deactivate "break on warnings"
- React tab doesn't appear in chrome developer tools
- Checking text appears inside an element using react testing library
- React Dev tools show my Component as Unknown
- React debug Using VSCode and Firefox instead of Chrome
- React app slows to a crawl with chrome developer tools open. Works fine in incognito
- React Router V4 Implement NavLink inside a ListItem using Material UI
- Modify React Component's State using jQuery/Plain Javascript from Chrome Extension
- Using a regular javascript library inside a React component
- using react js in Chrome extension
- React: using React component inside of dangerouslySetInnerHTML
- Why react dev tools Profiler dont show me component props?
- React dev tools blank component
- Using Chrome to debug React TypeScript .tsx file - Webpack
- Using react hooks inside render prop function
- React with Ecmascript6 classes problems using Chrome
- Why does React dev tools show my component as Anonymous?
- Using one webpack project inside another with react hooks causes an error
More Query from same tag
- How do I create image maps (clickable areas on an image using <map >) with React and JSX?
- How do you override the css for toggle buttons from react bootstrap?
- Jest testing redux connected component gives error " please ensure the component is wrapped in a <Provider>"
- Form in React w/ different input types
- React Redux - Issue removing an item
- Validation is not happening when enter key is pressed instead of clicking button
- Refactoring a class based component to hooks (gapi API)
- Sort table asc/des in React
- Jest/Enzyme Test firing Child prop as function in react functional component
- How to set POST fileupload parameter in ReactJS
- How can I get cookies from Express API to React?
- nextProps.history.push is not re rendering the component upon login
- how to add variable in jsx style attribute when there is already object?
- Dynamic reference to a google font from react app
- Passing props to higher-order components
- using innerHTML with React
- Yup .when validation with typescript
- Firebase onAuthStateChange return undefined when page refresh
- update to hook causes Invalid attempt to destructure non-iterable instance
- How to pass an Id to a query that is not being called in the component during refetchQuery in apollo/graphql/react
- Upgrading React version and it's dependencies by reading package.json
- Cannot get rid of this comma on the bottom of html. I am using react and in the index.html I don't see it there or in any of my components
- I am trying to use the react hook useContext() but its not working
- How get window values in Tests with Enzyme, Jest + Create React App
- Access a Field value with Redux-form - dependent Fields
- Symbol is not a function react enzyme i18n error
- Getting updated state right after state is updated right after dispatch within a component
- React Styled Components selector for self AND children?
- Reactjs hook that uses other hooks
- form with default values in React.FC