import React from 'react' ; import { RendererProps } from '@jsonforms/core' ; template P template S export class RendererComponent < P extends RendererProps , S = { } > extends React . Component < P , S > { constructor ( props ) { super ( props ) ; } } template P export interface StatelessRenderer < P extends RendererProps > extends React . StatelessComponent < P > { } /**
 * Represents a Renderer, which might either be a component or a function.
 */ export type Renderer = RendererComponent < RendererProps & any , { } > | StatelessRenderer < RendererProps & any > ;