Skip to content

Commit 16abcf7

Browse files
committed
react: Remove usage of removed React.StatelessComponent
1 parent f8922a4 commit 16abcf7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/react/src/Renderer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ export class RendererComponent<
4646
* Stateless Renderer.
4747
*
4848
* @template P type of any renderer props
49+
* @deprecated Use React.FunctionComponent instead
4950
*/
5051
export type StatelessRenderer<P extends RendererProps> =
51-
React.StatelessComponent<P>;
52+
React.FunctionComponent<P>;
5253

5354
/**
5455
* Represents a Renderer, which might either be a component or a function.
@@ -57,4 +58,4 @@ export type Renderer =
5758
// TODO fix @typescript-eslint/ban-types
5859
// eslint-disable-next-line @typescript-eslint/ban-types
5960
| RendererComponent<RendererProps & any, {}>
60-
| StatelessRenderer<RendererProps & any>;
61+
| React.FunctionComponent<RendererProps & any>;

0 commit comments

Comments
 (0)