Open prince272 opened 1 year ago
Consider using this
export const CodeInput = forwardRef(({ as, children, ...props }, ref) => { const Component = as; return (<Component ref={ref} {...props}>{children}</Component>); }); // Use case <CodeInput as={TextField} />
Consider using this