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

Hannah Cameron - Timeline - Octos #35

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

Conversation

hannahlcameron
Copy link

React Timeline

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Explain what purpose a component serves in React? a component in react is a separate class that holds together state and behavior of a specific aspect of an app.
How does adding dynamic content to a web page in React compare to jQuery? React utilizes linked components, where one component can render another, to render and make changes to a virtual DOM. Any changes made via the JSX are then compared to the virtual DOM and only if the changes are confirmed is the DOM actually manipulated. jQuery makes specific changes to the DOM based on events being triggered. The actual DOM is directly manipulated.
How did you use props in this project? I used props in this project to pass the tweets from the JSON data from the app.js file into the Timeline component as the events prop, where I then passed the specific person, message and timestamp data over to the timelineEvent component. Lastly, I passed the timestamp data as a prop to the timestamp component so that the time could be formatted.
Do you have any recommendations on how we could improve this project for the next cohort? Yes! Please consider using differentiating names on line 6 of TImestamp.js for the two places that 'time' is used. Looking at the file was fairly confusing to figure out what thing was which time :)

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