React Developer Tools is a Chrome DevTools extension for the open-source React JavaScript library. It allows you to inspect the React component hierarchies in the Chrome Developer Tools.
You will get two new tabs in your Chrome DevTools: "⚛️ Components" and "⚛️ Profiler".
The Components tab shows you the root React components that were rendered on the page, as well as the subcomponents that they ended up rendering.
By selecting one of the components in the tree, you can inspect and edit its current props and state in the panel on the right. In the breadcrumbs you can inspect the selected component, the component that created it, the component that created that one, and so on.
If you inspect a React element on the page using the regular Elements tab, then switch over to the React tab, that element will be automatically selected in the React tree.
The Profiler tab allows you to record performance information.
This extension requires permissions to access the page's React tree, but it does not transmit any data remotely. It is fully open source, and you can find its source code at https://github.com/facebook/react/tree/master/packages/react-devtools-extensions.
/* Overall App styling */
.App {
font-family: 'Arial', sans-serif;
text-align: center;
background-color: #FFEBEE; /* A light pink background */
padding: 50px;
border-radius: 15px;
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}
h1 {
color: #E91E63; /* Cheerful pink */
}
/* Board and Square styling */
.board-row {
display: flex;
justify-content: center;
margin-bottom: 15px;
}
.square {
width: 100px;
height: 100px;