For this assignment you will be creating three components:
FirstComponent, which is anh1with the text "My very first component."SecondComponent, which is anh2with the text "My second component."NamedComponent, which is apthat should accept a property of "name" and display the text "My name is " + name.
- Define a
Tweetcomponent which takes as props the username of the user who wrote the tweet, the name of the user who wrote the tweet, the date of the tweet, and the message being tweeted. - Create an
Appcomponent that renders at least three tweets. - Style your
Tweetcomponent!
Create a component called Person. Inside of this component, render a p tag which displays "Learn some information about this person". Each person should have name and age properties.
If the person is over 21 years old, display an additional h3 that says "have a drink!". Otherwise, display an h3 that says "you must be 21". If the person's name is longer than 8 characters, only display the first six characters of their name.
Add a prop called hobbies to your Person component that accepts an array of hobbies (an array of strings). Your Person component should list each one of these hobbies as an li.
Finally, render at least three copies of the Person component on the page.