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

Ports - Angela #13

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

Ports - Angela #13

wants to merge 6 commits into from

Conversation

AngelaOh
Copy link

React Timeline

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Explain what purpose a component serves in React?
How does adding dynamic content to a web page in React compare to jQuery?
How did you use props in this project?
Do you have any recommendations on how we could improve this project for the next cohort?


// Customize the code below
const postingData = timelineData.events.map ((post, i) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea to just map in the App component!


const Timeline = (props) => {

return(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clean and easy to see the flow of the data from timelineData.json

}
const TimelineEvent = (props) => {

const time = <Timestamp time={ props.timeStamp} />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea to make use of the Timestamp component and saving its return value in a variable

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.

2 participants