Page 1 of 1

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

Posted: Mon Jun 06, 2022 6:38 pm
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 15 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>