- Use Components to create reusable elements on a webpage
- Apply a function to a list of data, using map
- Condense a list of values to a single value, using reduce
- Filter a list using the filter method
Download the provided data folder from here, which includes a json
file containing a list of details for different animals, as well as the images for each animal.
Each animal has the following attributes:
type
- animal typestate
- emotional expressionimg
- path to the imageadoption_fee
- the cost to adopt the animal
Then do the following, to the list of animals:
- filter a decided attribute out of the list of animals (ex. no lizards, or only costs 20 dollars or less)
- Use reduce to get the total cost of all of the animals, and display it on the page somewhere
- Then use map to display each of the animals in their own Component
- Lecture Notes - super detailed overview of the lecture
- Next.js Setup - official documentation for setting up Next.js
- Tailwind Setup - setting up tailwind with Next.js
- Potion Seller - inspiration for the potion demo 😂