Skip to content

Commit 5890623

Browse files
committed
docs: update example component
1 parent b7b1932 commit 5890623

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/code-style.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ type MyComponentProps = {
129129
};
130130

131131
const MyComponent: FC<MyComponentProps> = ({ title, isVisible = true }) => {
132-
if (!isVisible) return null;
132+
if (!isVisible) {
133+
return null;
134+
}
133135

134136
return (
135137
<div className={styles.myComponent}>

0 commit comments

Comments
 (0)