Skip to content

Conversation

@stpatrickschild
Copy link

Assignment Submission: Timeline

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

Reflection

1.) What is a Component in React?
A component is a JavaScript class or function that accepts inputs in a form of props and returns a React element that describes how a section of the UI should appear.

What are props in React?
We know that React is a component-based library that divides the UI into smaller reusable pieces. And when components need to send data to each other, props are used to do that between components. Since the relationship is parent/child, the way data is passed is from parent to child. The data that is being passed using props also can't be changed by the child components. In short, Props are arguments passed into React components.

How did you use props in this project?
I used props to pass data to a child component, and parse out person, status, and time for each event at the lower timeline event-level and render the props data.

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