17
loading...
This website collects cookies to deliver better user experience
Components
tab is to show us the structure of the React application. The structure shows how are all the components nested. In addition, we also get other useful information about the components. E.g. props, state, context, functions, etc... We'll talk more about them later. But for now - let's see how can we find the component we need inside the component tree.Components
and Elements
tab interact with each other. If we select any component in Components
. It will also get selected in Elements
. It also works another way around. In the example below, selecting button will automatically select Button
in Components
tab.Console
and type $r
. It will give us all the information we see in the Components
tab.<>
. This will open up the corresponding file, where we can see what's wrong with the code.Profiler
.Profiler
shows us how long it takes to render each component of our app. We can identify what component is slowing down our application. And of course, improve its performance!Button
component.