To complete the assignment, you’ll need a new React project created with cra (create-react-app). a. Briefly describe wha

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

To complete the assignment, you’ll need a new React project created with cra (create-react-app). a. Briefly describe wha

Post by answerhappygod »

To complete the assignment, you’ll need a new React
project created with cra (create-react-app).
a. Briefly describe what is the Context API, what problems it
solves, and name the functions, hooks and components used to create
a Context. (10%)
b. Visit https://jsonplaceholder.typicode.com/guide/ to find
information on how to use their free API.This API allows not only
GET requests but also POST and DELETE. Using the following URL
https://jsonplaceholder.typicode.com/posts , perform a network
request to retrieve a list ofposts and show them in your app in any
way you wish. In your design decision,make sure to include a button
that allows you to delete a post. Note that the delete operation is
mocked and you won’t be actually deleting something from their API
but in order to make it realistic you would have to delete the post
manually from the list of posts (remove it from the array that you
used for rendering). You can approach this in any way you want
(useState, useReducer, orContext API) (30%)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply