π§βπ€βπ§Render User Information's from a list of arrays...
const App = () => {
const usersInfo = [
{
username: "HuXn",
email: "test@gmail.com",
location: "USA",
},
{
username: "John",
email: "jd@gmail.com",
location: "Arab",
},
{
username: "Alex",
email: "alexmersion@gmail.com",
location: "India",
},
];
return (
<section>
{usersInfo.map((user) => (
<ul key={Math.random()}>
<li>{user.username}</li>
<li>{user.email}</li>
<li>{user.location}</li>
</ul>
))}
</section>
);
};
export default App;
Last updated