Skip to content

Commit

Permalink
Use function style in place of React.FC
Browse files Browse the repository at this point in the history
  • Loading branch information
fyodore82 committed Feb 3, 2020
1 parent 2cbe12e commit efd690c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/pages/guides/typescript/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function GenericCustomComponent<C extends React.ElementType>(
}
```

Now if the `GenericCustomComponent` will be used with a `component` prop provided, it should also have any props required by the provided component.
Now if the `GenericCustomComponent` will be used with a `component` prop provided, it should also have all props required by the provided component.

```ts
function ThirdPartyComponent({ prop1 } : { prop1: string }) {
Expand Down

0 comments on commit efd690c

Please sign in to comment.