a. Briefly describe the difference between useMemo() and useCallback() (10%) b. Create a Card component that will be use

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

a. Briefly describe the difference between useMemo() and useCallback() (10%) b. Create a Card component that will be use

Post by answerhappygod »

A Briefly Describe The Difference Between Usememo And Usecallback 10 B Create A Card Component That Will Be Use 1
A Briefly Describe The Difference Between Usememo And Usecallback 10 B Create A Card Component That Will Be Use 1 (85.31 KiB) Viewed 13 times
Using React,Node.js
a. Briefly describe the difference between useMemo() and useCallback() (10%) b. Create a Card component that will be used torender the details of the users that you will later retrieve. The componentshould have a "user" prop from which you'll be able to retrieve the rest of theinformation. Below you'll see a mockup of how the Card should look like. Stylesare up to you to implement. (30%) ... User image Username User email User phone Upon the initialization of your main view, perform a network request to https://randomuser.me/api/?results=10&nat=gb. This endpoint will return an array of 10 users that you can iterate and render a card for each user. Wrap this operation in the following div. <div style={{ display: 'flex', flexWrap: 'wrap', gap: 10, padding: 10 }} {...your logic here} </div>
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply