Const TestAndRender
TestAndRender: NamedExoticComponent<object> & object = React.memo((props: {uischema: UISchemaElement;schema: JsonSchema;path: string;enabled: boolean;renderers: JsonFormsRendererRegistryEntry[];cells: JsonFormsCellRendererRegistryEntry[];id: string;}) => {const renderer = useMemo(() => maxBy(props.renderers, r => r.tester(props.uischema, props.schema)),[props.renderers, props.uischema, props.schema]);if (renderer === undefined ||renderer.tester(props.uischema, props.schema) === -1) {return <UnknownRenderer type={'renderer'} />;} else {const Render = renderer.renderer;return (<Renderuischema={props.uischema}schema={props.schema}path={props.path}enabled={props.enabled}renderers={props.renderers}cells={props.cells}id={props.id}/>);}})
Represents a Renderer, which might either be a component or a function.