Closed lizthrilla closed 5 years ago
Can be found here https://github.com/lizthrilla/react-course-notes
Your homework was marked: Exceeds Expectations
“That's what I'm talking abour” — via Venel
Your homework was marked: Meets Expectations
“Well done!” — via Gavin Stark
Your homework was marked: Needs Improvement
“keep working at it, you'll get there” — via Mark Dewey
Your homework was marked: Acceptable
“A Gavin says "WAT?"” — via Jason L Perry
Your homework was marked: Exceeds Expectations
“Excellent ” — via Mark Dewey
great job
React-ified Octocats
This Octodex is amazing. It has revolutionized the Github Octodex experience and more people are viewing Octocats on their mobile devices than ever.
However, the code is repetitive and isn't yet setup to work with an API.
Your task now is to refactor the static Octodex into a static (non-API) version in React.
You'll identify the main
Component
s on the page and create React components for each, breaking down thoseComponent
s into smaller ones as needed.Objectives
Component
sapp-app
(GAMMA stack) to build a React projectStretch Objectives
Array.prototype.map
to render a collection of components in ReactExplorer Mode
<App>
component.render
method ofApp
and have it render your main components.render
method of those components.this.props
to dynamically customize the components that need it.array
and usemap
to generate the Octocat componentsAdventure Mode
array
of Octocats in aoctocats.json
file andimport
that into your app.Epic Mode
fetch
api to retrieve the list of Octocats from this api insteadAdditional Resources