Skip to content

Instantly share code, notes, and snippets.

@codewithbernard
Created December 6, 2021 09:41
Show Gist options
  • Select an option

  • Save codewithbernard/30cd81ad211e5422ca2c0f7cec1dc6a9 to your computer and use it in GitHub Desktop.

Select an option

Save codewithbernard/30cd81ad211e5422ca2c0f7cec1dc6a9 to your computer and use it in GitHub Desktop.
const users = [
{ name: "John", age: 24 },
{ name: "Linda", age: 19 },
{ name: "Josh", age: 33 }
];
function App() {
return (
<div className="App">
<ul>
{users.map((user) => (
<li>{user.name}</li>
))}
</ul>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment