Array.prototype.map() expects a return value from arrow function array-callback-return
Using React or JSX? don't use map as-
props.users.map((user) => {
<li>{user.name}</li>
});
Use '()' instead of '{}'
props.users.map((user) => (
<li>{user.name}</li>
));