Adding Elements to the Header Component
Learn to add elements to the Header component.
We'll cover the following...
We’re going to work on the Header
component a little more so that it eventually looks as follows:
Press + to interact
So, the Header
component will contain the app name, which will be “Q & A”, a search input, and a “Sign In” link.
With the app still running, carry out the following steps to modify the Header
component:
Add the app name inside an
anchor
tag inside thediv
tag by replacing the word header, which was previously used insidediv
:
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.