Skip to content

Conversation

@theomoondev
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? Everything in React is a component. They usually take the form of Javascript classes, which handle the data (props and state) and behaviors (component functions) of the React application. A component can only render one element, so if we want to render multiple elements, we must wrap them in another element or component.
What are props in React? Props are a data type in React. A prop is not controlled by the component itself; rather, it is passed down from components higher up the hierarchy.
How did you use props in this project? I passed the props into the component functions as an argument and used dot notation to access the value of each prop (e.g., prop.person) so it could be returned and rendered in the App.

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