We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8922a4 commit 16abcf7Copy full SHA for 16abcf7
1 file changed
packages/react/src/Renderer.tsx
@@ -46,9 +46,10 @@ export class RendererComponent<
46
* Stateless Renderer.
47
*
48
* @template P type of any renderer props
49
+ * @deprecated Use React.FunctionComponent instead
50
*/
51
export type StatelessRenderer<P extends RendererProps> =
- React.StatelessComponent<P>;
52
+ React.FunctionComponent<P>;
53
54
/**
55
* Represents a Renderer, which might either be a component or a function.
@@ -57,4 +58,4 @@ export type Renderer =
57
58
// TODO fix @typescript-eslint/ban-types
59
// eslint-disable-next-line @typescript-eslint/ban-types
60
| RendererComponent<RendererProps & any, {}>
- | StatelessRenderer<RendererProps & any>;
61
+ | React.FunctionComponent<RendererProps & any>;
0 commit comments