mirror of
https://github.com/awesome-skills/code-review-skill.git
synced 2026-03-22 10:28:31 +08:00
fix: 修复代码示例语法错误
- vue.md: 添加缺失的注释符号 // - react.md: 添加缺失的 async 关键字
This commit is contained in:
@@ -226,7 +226,7 @@ function Counter() {
|
||||
}
|
||||
|
||||
// app/page.tsx (Server Component)
|
||||
function GoodServerComponent() {
|
||||
async function GoodServerComponent() {
|
||||
const data = await fetchData(); // 可以直接 await
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user