Skip to content

Commit d178225

Browse files
committed
Delete React.FC in sample code because of code-conventions change
1 parent 868ef21 commit d178225

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/best-practices.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,21 @@ Markdown will be translated as whole pages of content, so no specific action is
8383

8484
```tsx
8585
// Example
86-
import React, { useState, useEffect } from "react";
86+
import React, { useState, useEffect } from "react"
8787
8888
const ComponentName = () => {
8989
// useState hook for managing state variables
90-
const [greeting, setGreeting] = useState("");
90+
const [greeting, setGreeting] = useState("")
9191
9292
useEffect(() => {
9393
// useEffect hook for handling component lifecycle
94-
setGreeting("Hello world");
95-
}, []);
94+
setGreeting("Hello world")
95+
}, [])
9696
97-
return <div>{greeting}</div>;
98-
};
97+
return <div>{greeting}</div>
98+
}
9999
100-
export default ComponentName;
100+
export default ComponentName
101101
```
102102

103103
## Styling

0 commit comments

Comments
 (0)