Coding task · JavaScript and React course · Module 1: React Basics

Practice: React Developer Tools

React DevTools shows components under their names, together with their props - that is why readable component names matter.

Task

Create a TestComponent that takes a name prop and displays a heading with that name (e.g. “Diagnostics: Engines”), then render it in the App component as <TestComponent name="Engines" />. When you run such a project locally, you will see TestComponent and its props in the Components tab of React DevTools.