Question from the React ⚛️ test

Render a list of string from an array in React

Easy

What will this component display?

const MyComponent=()=>{
    const myList=['we', 'love', 'devs'];

    return(
       <ul>
           {myList.map((string)=>(
               <li>{string}</li>
            ))}
       </ul>
    );
};
Author: EmilieStatus: Published(Update)Question passed 617 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!