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 passed 6269 times
Edit
29
Community EvaluationsNo one has reviewed this question yet, be the first!
11
Use useCallback to optimize rendering in React15
Save the state used to display the selected page in a React component.10
Write a React component that updates the document title with each click and resets to 'React App' when the component unmounts.10
Write a React component that displays the sum of two numbers18
Call a function on the first render of a React component17
Write a React component as a function35
Write the non-JSX equivalent of the following code: