Quiz 7
Test your knowledge of state management.
Q1. Using the following user data returned by a server’s API, show how it should look once normalized in the redux state:
const apiData = [
  {
   id: 1,
   name: 'Toby',
   friends: [
    { id: 4, name: 'Charly' },
    { id: 6, name: 'Nate' },
   ]
  },
  {
   id: 2,
   name: 'George',
   friends: [
    { id: 6, name: 'Nate' }
   ]
  },
  {
   id: 6,
   name: 'Nate',
   friends: [
    { id: 1, name: 'Toby' },
    { id: 2, name: 'George' }
   ]
  }
 ]
Get hands-on with 1300+ tech skills courses.