Last active
March 4, 2021 01:02
-
-
Save stoneboyindc/ac716f5142c91a190777c177c63557ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
function App() { | |
const name = "Kitty Kat"; | |
const birthday = "January 1"; | |
const imageSrc = | |
"https://images.pexels.com/photos/45201/kitty-cat-kitten-pet-45201.jpeg"; | |
const hobbies = ["watching birds", "hiding in a box", "napping"]; | |
const dailyActivities = [ | |
{ time: "8:00 am", description: "wake up" }, | |
{ time: "8:30 am", description: "breakfast" }, | |
{ time: "9:00 am", description: "morning nap" }, | |
{ time: "12:00 pm", description: "lunch" }, | |
{ time: "1:00 pm", description: "afternoon nap" }, | |
{ time: "6:00 pm", description: "dinner" }, | |
{ time: "7:00 pm", description: "play" }, | |
{ time: "10:00 pm", description: "bedtime" }, | |
]; | |
return <Display imageSrc={imageSrc} name={name} birthday={birthday}/>; | |
} | |
function Display(props) { | |
return <> | |
<img src={props.imageSrc} /> | |
<h1>{props.name}</h1> | |
<h2>Birthday: {props.birthday}</h2> | |
</>; | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment