...
/Challenge: Adding a Button and Styling it with Emotion
Challenge: Adding a Button and Styling it with Emotion
Test yourself by adding a styled button to the existing HomePage component using Emotion.
We'll cover the following...
We'll cover the following...
Overview
This challenge is divided into two parts, in first task you will add a button named “Add a comment” to the HomePage
component and style it using CSS modules. In second task you have to create a reusable Addacommentbutton
styled component with emotion so it can be used on multiple places. This will test your ability to apply styles to a React component using Emotion and build upon the topics covered in the chapter.
Requirements for creating a new button
You have been given a React code file for the HomePage
component. Your task is to add a button ...