mirror of
https://github.com/awesome-skills/code-review-skill.git
synced 2026-03-22 02:19:32 +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>
|
||||
|
||||
@@ -492,7 +492,7 @@ watch(
|
||||
source,
|
||||
() => {
|
||||
// 可以安全访问更新后的 DOM
|
||||
nextTick 不再需要
|
||||
// nextTick 不再需要
|
||||
},
|
||||
{ flush: 'post' }
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user