Requirements
For this assignment, you are going to build the following application using React: http://itp404-fall-2023-assignment-3.surge.sh. This application uses the icanhazdadjoke API. It must behave exactly the same as the example, but you're free to style it however you wish.
- The list of jokes should use
id
as the uniquekey
.
This API requires sending the Accept
HTTP header. Setting the Accept
header to application/json
tells the API to respond with JSON. Here is an example of how to do that with fetch
:
fetch("https://icanhazdadjoke.com/search?term=cat", {
headers: { Accept: "application/json" },
});
GitHub Classroom Submission
If you used Create React App for the assignment, please deploy your assignment to Surge using these instructions and include a link at the top of the README.md
file.