Header Component

Add the Header component

The Header component in the header.js file is responsible for displaying our app name, JavaScript Quiz, on the top of our screen. To style the Header component, we give it the header class, which already has properties in the index.css file attached to it.

<div className="header">
   <h1>JavaScript Quiz </h1>

Get hands-on with 1200+ tech skills courses.