...

/

Adding Elements to the Header Component

Adding Elements to the Header Component

Learn to add elements to the Header component.

We’re going to work on the Header component a little more so that it eventually looks as follows:

Press + to interact
All the elements in the Header component
All the elements in the Header component

So, the Header component will contain the app name, which will be “Q & A”, a search input, and a “Sign Inlink.

With the app still running, carry out the following steps to modify the Header component:

  1. Add the app name inside an anchor tag inside the div tag by replacing the word header, which was previously used inside div:

Press + to interact
export const Header = () => (
<div>
<a href="./">Q & A</a>
</div> );

Notice that the implicit return statement containing ...

Access this course and 1400+ top-rated courses and projects.