grubersjoe/react-github-calendar
关于
用于显示 GitHub 贡献日历的 React 组件
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React GitHub Calendar
A React component to display your GitHub contributions calendar based on
react-activity-calendar and
github-contributions-api.
Version 5 has been released 🎉
See the list of
breaking changes.

Installation
npm install react-github-calendar
Usage
import { GitHubCalendar } from 'react-github-calendar';
<GitHubCalendar username="grubersjoe" />
FAQ
Is server side rendering (SSR) supported?
Yes. However, not with this component because it fetches data client-side. For SSR support, you can
fetch the GitHub contribution data from a suitable
API server-side and pass it on to the
internally used react-activity-calendar
component. See the
source code as
example and the GitHub color theme.
Why is Create React App unsupported?
Create React App (CRA) is considered
abandoned, and you probably should
not use it anymore (more
background).
Using this component inside CRA will lead to errors for reasons described in issue
#105 of
react-activity-calendar. This repo is not for CRA support questions. If you encounter issues, you
need to fix those yourself given the maintenance state of CRA. Personally, I would recommend using
Vite instead of CRA. It offers everything that CRA does and more.
Development
pnpm install
pnpm dev
Open http://localhost:3000.
Publish a new release
pnpm publish --dry-run
# then
pnpm publish --access=public
Update demo page
pnpm run deploy
探索相关项目
加载中…