Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time - Vera #42

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Time - Vera #42

wants to merge 7 commits into from

Conversation

veralizeth
Copy link

Assignment Submission: Timeline

Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.

Reflection

Prompt Response
What is a Component in React? Are reusable chunks of JS that output via JSX, HTML element. A component takes the form of JavaScript classes or functions that could take parameters, properties(props) and returns a react element. We can use a component after we have defined it by calling it.
What are props in React? The properties(props) are passed down from components higher up the hierarchy, they manage and share the data. They are like parameters. Props cannot be changed within the components and we can assign them to a variable or contain any object or function. Always in one direction from the parent to the child.
How did you use props in this project? const Timeline = (props) I used them to access {timelineData.events} that contains an array of objects. They come from the parent App.js. Knowing that timelineData.events I iterate over it to get the data of each person, status , timeStamp. TimelineEvent component use the props from the parent TimeLine component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant