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
Copying the example in the docs, I am trying to use text as the child of a button. Typescript is complaining about 'WiredButton' components don't accept text as child elements. Text in ISX has the type 'string', but the expected type of 'children' export ( is ' (HTMLCollection & (string | number | boolean | returi ReactElement<any, string I JSXELementConstructor<any» | «di' ReactFragment I ReactPortal | null)) | undefined',
Is the Typescript typing wrong? Maybe this Stack Overflow answer provides a better option.
The text was updated successfully, but these errors were encountered:
Copying the example in the docs, I am trying to use text as the child of a button. Typescript is complaining about
'WiredButton' components don't accept text as child elements. Text in ISX has the type 'string', but the expected type of 'children' export ( is ' (HTMLCollection & (string | number | boolean | returi ReactElement<any, string I JSXELementConstructor<any» | «di' ReactFragment I ReactPortal | null)) | undefined',
Is the Typescript typing wrong? Maybe this Stack Overflow answer provides a better option.
The text was updated successfully, but these errors were encountered: