Skip to content

Commit 8c7f536

Browse files
bestseob93zhoushaw
andauthored
docs(react-bridge): optimize importing-components.mdx (#2692)
Co-authored-by: Zhou xiao <[email protected]>
1 parent 60cd259 commit 8c7f536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/website-new/docs/en/practice/frameworks/next/importing-components.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const ClientOnly = ({Component}) => {
7676
useEffect(() => {
7777
setMount(true);
7878
}, []);
79-
if (mounted) return null;
79+
if (!mounted) return null;
8080
return (
8181
<Suspense fallback="loading">
8282
<Component />

0 commit comments

Comments
 (0)