Living in style with class
Solidify your knowledge of JSX by solving this problem.
Dogesh has a website where he wants to render two paragraphs where he wants common styling to apply on both paragraphs while the last paragraph will have slightly smaller font with muted text color.
In DOM it should look like this:
<div> <h1 style="padding: 10px">My Cool Bio</h1> <p class="bio-paragraph"> I live on the edge. I sit on the ledge. I click cool pics. I post them with Swag! </p> <p class="bio-paragraph" style="color: #1e1e1e; font-size: small">Last updated on Monday</p> </div>
Requirements:
-
There should be a heading
- With text:
My Cool Bio
(case insensitive) - It should have a padding of:
10px
- With text:
-
There should be a paragraph
- With text:
I live on the edge. I sit on the ledge. I click cool pics. I post them with Swag!
(case insensitive) - It should have a class of:
bio-paragraph
- With text:
-
There should be another paragraph
- With text:
Last updated on Monday
(case insensitive) - It should have a class of:
bio-paragraph
- It should have a color of:
#1e1e1e
& a font-size of:small
- With text:
Solve this easy problem to earn 1