wired-elements-react
wired-elements-react copied to clipboard
Incorrect Typescript type
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.