sachasi / use-github

:shipit: React hooks for the GitHub API

Home Page:https://use-github.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use-github

React Hooks for the GitHub Rest API 😎

It returns an SWRHook, but if you don't know what that means, here's an example πŸ‘‡

import { useGitHubUser } from "use-github";

export const UserCard = (username: string) => {
  const { data: userData } = useGitHubUser(username);

  return <>...</>;
};

Installation βˆ™ npm

# npm
npm install use-github

# yarn
yarn add use-github

# pnpm
pnpm add use-github

TODO

Currently this package only exposes useGitHubUser and useGitHubPinnedRepos, there are a lot more endpoints to cover!

Pull Request and Issues are more than welcome!

Docs

Notes

Originally Done for my website πŸ‘‡

https://ultirequiem.com

Join my Discord Server!

License

Licensed under the MIT License.

About

:shipit: React hooks for the GitHub API

https://use-github.js.org

License:MIT License


Languages

Language:TypeScript 82.0%Language:JavaScript 18.0%