Skip to content

fix: wrap generic event types in inline code - #214

Open
dogledogle wants to merge 1 commit into
react-component:masterfrom
dogledogle:fix/dumi-inline-code-types
Open

fix: wrap generic event types in inline code#214
dogledogle wants to merge 1 commit into
react-component:masterfrom
dogledogle:fix/dumi-inline-code-types

Conversation

@dogledogle

@dogledogle dogledogle commented Jul 18, 2026

Copy link
Copy Markdown

React.xxx<HTMLUListElement> 中的 <HTMLUListElement> 被错误解析成了 JSX 组件,报错 Uncaught TypeError: Failed to construct 'HTMLUListElement' 导致页面白屏。
Snipaste_2026-07-18_10-28-50

Summary by CodeRabbit

  • 文档
    • 优化 Rate 组件事件回调类型的代码格式展示。
    • 同步更新中英文 README 中 onKeyDownonMouseEnteronMouseLeave 的类型说明。

@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

@dogledogle is attempting to deploy a commit to the afc163's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

统一英文和中文 README 的 Rate API 表格中三个事件回调类型的代码样式展示。

Changes

Rate API 文档

Layer / File(s) Summary
统一事件类型展示格式
README.md, README.zh-CN.md
onKeyDownonMouseEnteronMouseLeave 的 React 事件类型添加反引号代码样式。

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: afc163

Poem

小兔蹦蹦啃文档,
事件类型亮晶晶。
中英文档齐换装,
反引号闪新光。
评审轻轻一点过,
胡萝卜香满框。

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确概括了本次将泛型事件类型改为内联代码的主要变更。
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the English and Chinese README files to wrap React event handler types (onKeyDown, onMouseEnter, and onMouseLeave) in backticks within the API documentation tables for better formatting. There are no review comments, so I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant