Say I have a component that takes 2 button instances:
export interface GridProps {
backButton: any;
nextButton: any;
}
Should the type for the button be React.ReactNode or React.ReactElement
so either:
export interface GridProps {
backButton: React.ReactNode;
nextButton: React.ReactNode;
}
or
export interface GridProps {
backButton: React.ReactElement<any>;
nextButton: React.ReactElement<any>;
}