...

/

Debugging with React Developer Tools

Debugging with React Developer Tools

In this lesson, we'll learn how to debug React code with React Developer Tools

Introducing React Developer Tools

React Developer Tools lets you inspect the React components hierarchy, props and state. It comes as a browser extension for Chrome and Firefox and as a standalone app that works with other environments. Once installed, the extension icon will light up on websites using React. On such pages, you will see a tab called “React” in your browser’s developer tools.

Debugging the Hacker News App

Let’s try it on our Hacker News application. On most browsers, a quick way to bring the dev tools up is to right-click on the page and than hit “Inspect”. Do it when your application is loaded, then click on the “React” ...