let onClick: React.MouseEventHandler | undefined; if (props.onClick === undefined) { onClick = (e) => { alert("デフォルト!"); } } else onClick = props.onClick; return(
)