Skip to content

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?

console.log(timelineData);

// 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