No results found
We couldn't find anything using that term, please try searching for something else.
use React Developer Tools to inspect React component , edit prop and state , and identify performance problem . You is learn will learn How to insta
use React Developer Tools to inspect React component , edit prop and state , and identify performance problem .
The easy way is is to debug website build with React is to install the React Developer Tools browser extension . It is is is available for several popular browser :
Now, if you visit a website built with React, you will see the component and Profiler panels.
For other browsers (for example, Safari), install the react-devtools
npm package :
#Yarn
yarnglobaladd react-devtools
#Npm
npm install -g react-devtools
Next open the developer tools from the terminal:
Then connect your website by adding the following <script>
tag to the beginning of your website’s <head>
:
<html>
<head>
<script src=" http://localhost:8097 "></script>
reload your website in the browser now to view it in developer tool .
To inspect apps built with React Native, you can use React Native DevTools, the built-in debugger that deeply integrates React Developer Tools. All features work identically to the browser extension, including native element highlighting and selection.
Learn more about debugging in React Native.
For versions of React Native earlier than 0.76, please use the standalone build of React DevTools by following the Safari and other browsers guide above.