Which of the following is the correct syntax for rendering a list of components with unique keys in React?
{list.map(item => <Component key={item.id} />)}
{list.map(<Component key={item.id} />)}
{list.map(Component => <key={item.id} />)}
{list.map(<key={item.id}>Component</key>)}
This question is part of this quiz :
Lists and Keys in React