Closed gstark closed 6 years ago
Hi Gavin. Here is the link for my reactified-octocats. I'm currently working on building an array and using map for the octocats but i think thus far it covers explorer mode.
I'm sorry to miss lecture in person today. Thank you.
Your homework was marked: Acceptable
“Hmm ok ” — via Katherine Trammell
See if you can return to this assignment and complete the map
part, it will help with your understanding.
Your 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
screate-react-app
to build a React projectStretch Objectives
Array.prototype.map
to render a collection of components in ReactExplorer Mode
<App>
component.index.css
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.Adventure Mode
array
and usemap
to generate the Octocat componentsEpic Mode
array
of Octocats in aoctocats.json
file andimport
that into your app.fetch
api to retrieve the list of Octocats from this api insteadAdditional Resources