You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initially used static data to create Restaurant List
Passed props(info.name etc.) of Restaurant List to make it dynamic; Props are nothing but arguments passed to Components and Components are JavaScript functions
Later used destructering and spread operator to increase the readibility of the code
Used Array.map() function to avoid writing Restaurant Card multiple times
Used "key", passed in map() to ensure that the existing restaurant Card doesn't render every time a new Restaurant is added in the Restaurant List.