Closed mdewey closed 5 years ago
Your task is to refactor the static Octodex into a static (non-API) version using React.
You'll identify the main Components on the page and create React components for each, breaking down those Components into smaller ones as needed.
Component
app-app
Array.prototype.map
<App>
index.css
render
App
this.props
array
map
octocats.json
import
fetch
https://github.com/LivCunningham/octocat.git
I'll add more
Your homework was marked: Meets Expectations
“Well done!” — via Gavin Stark
React-ified Octocats
Your task is to refactor the static Octodex into a static (non-API) version using 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.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 anoctocats.json
file andimport
that into your app.fetch
API to retrieve the list of Octocats from this api insteadAdditional Resources