Skip to content

Instantly share code, notes, and snippets.

@hesan-aminiloo
Created July 15, 2022 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hesan-aminiloo/1f0a1fbe4fa67b5c3749d53223a68c23 to your computer and use it in GitHub Desktop.
Save hesan-aminiloo/1f0a1fbe4fa67b5c3749d53223a68c23 to your computer and use it in GitHub Desktop.
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