fr

Test Question React ⚛️

Write the missing code to render the children of the UserProfile component.

Easy

In order for the following component to work, what must be written in place of *** MISSING CODE***?

function UserProfile(props){
  return(
   <div className="userBloc">
     <h3 className="userBloc-title">User profile</h3>
     *** MISSING CODE***
   </div>
  );
}

ReactDOM.render(
 <UserProfile>
   <ul>
     <li>Ludovic Leblanc</li>
     <li>React.js Developer</li>
     <li>Best in class</li>
   </ul>
 </UserProfile>,
  document.querySelector("# root")
);
Author: Victor SabatierStatus : PublishedQuestion answered 3,846 times
10
Reviews from developers
developer avatar
Anonymous author
04/19/2023
🇺🇸
Good! Very good! Excellent work!
⚠️
Your browser is badly|not supported!
We recommend you to use a more modern browser such as Edge, Chrome or Firefox
Know More