Write a component that dynamically renders a list of user profiles passed as hardcoded props.
EasyProblem Statement
Write a component that dynamically renders a list of user profiles passed as hardcoded props.
Sample Input
users = [{ id: 1, name: 'Alice' }, { id: 2, name: 'Bob' }]Sample Output
Alice Bob
Limits
Time: 2s · Memory: 256 MB
Code Editor
Log in to submit00:00
Try your code in this preview. Submit marks it done.
import React from "react"; const UserList = (props) => { // Map over props.users to render the list }; export default UserList;