Created
July 15, 2022 13:25
-
-
Save hesan-aminiloo/1f0a1fbe4fa67b5c3749d53223a68c23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Users = () => { | |
const users = useFetch('/zighi.com/api/users'); | |
return ( | |
<> | |
<h1>Users List</h1> | |
{users.map((user) => ( | |
<div> | |
<h2>{user.name}</h2> | |
</div> | |
))} | |
</> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment