Skip to content

Commit 1415251

Browse files
Update src/content/blog/2024/04/25/react-19.md
1 parent 066902d commit 1415251

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content/blog/2024/04/25/react-19.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ function Heading({children}) {
296296
if (children == null) {
297297
return null;
298298
}
299+
299300
// 因为过早的返回
300301
// 这里 useContext 无法正常工作。
301302
const theme = use(ThemeContext);

0 commit comments

Comments
 (0)