Closed
Description
I currently have the following code, and it breaks when I run parse with the error No suitable component definition found
import React from 'react';
const Group = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>((props, ref) => {
return <div {...props} ref={ref} />;
});
type TInput = React.ForwardRefExoticComponent<
React.HTMLAttributes<HTMLInputElement> &
React.RefAttributes<HTMLInputElement>
> & {Group: typeof Group};
const Input = React.forwardRef<
HTMLInputElement,
React.HTMLAttributes<HTMLInputElement>
>((props, ref) => {
return <input {...props} ref={ref} />;
}) as TInput;
Input.Group = Group;
export default Input;
Metadata
Metadata
Assignees
Labels
No labels