week 04 - day 01 - octocats - intro to react
Closed this issue · 2 comments
ads6495 commented
React-ify Octocats
Octodex is a fun way to celebrate a powerful tool we use for development. In that same spirit, recreate this site
You'll identify the main Component
s on the page and create React components for each, breaking down those Component
s into smaller ones as needed.
Objectives
- Learn to identify parts of a web site as
Component
s - Use
app-app
(GAMMA stack) to build a React project - Understand and use React components
Stretch Objectives
- Understand and use "props" in React
- Use
Array.prototype.map
to render a collection of components in React
Explorer Mode
- Figure out the main components of the page. These will be the main components in your
<App>
component. - Create your React app
- Your CSS should be in
index.css
- You should have at least two components...
- Clear out the implementation in the
render
method ofApp
and have it render your main components. - Use props to try to reuse components
Adventure Mode
- Place the definition of each Octocat in an
array
of objects and usemap
to generate the Octocat components
Epic Mode
- Put the
array
of Octocats in aoctocats.json
file andimport
that into your app. - OR
- Use the
fetch
api to retrieve the list of Octocats from this api instead
Additional Resources
ads6495 commented
Your homework week 04 - day 01 - octocats - intro to react was marked: Meets Expectations
“Well done!”
— via Gavin Stark