const MyButton = ({children, . ..props}) => {
return (
<button {...props} >{children}</button>
)
}
import { ReactNode } from 'react';
type InputProps = {
children: ReactNode;
};
const MyButton = ({ children, ...props }: InputProps) => {
return <button {...props}>{children}</button>;
};