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
Hi, when using typescript and setting default values when destructuring props boolean values seem to be ignored, eg:
interfacePropsextendsReact.ButtonHTMLAttributes<HTMLButtonElement>{disabled?: boolean}constComponent=({ disabled =false, children }: Props)=><buttondisabled={disabled}>{children}</button>
The proptable for the above renders as expected only its missing the value 'false' in the default column. As far as i can see this is working correctly with other types, eg - strings, objects, functions etc.
The text was updated successfully, but these errors were encountered:
Hi, when using typescript and setting default values when destructuring props boolean values seem to be ignored, eg:
The proptable for the above renders as expected only its missing the value 'false' in the default column. As far as i can see this is working correctly with other types, eg - strings, objects, functions etc.
The text was updated successfully, but these errors were encountered: