You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default column only specifies if a property is required or not, it doesn't take defaulted properties into account. I known I can work around this with Button.defaultProps = {}, but this shouldn't be required anymore.
import*asReactfrom"react";interfaceButtonProps{
children: React.ReactNode,/** More information about the disabled property */disabled?: boolean}/** * A general purpose button. */exportdefaultfunctionButton({children, disabled =false}: ButtonProps){return<buttondisabled={disabled}>{children}</button>;}