Skip to content

[SplitViewListbox] Typescript: Components returning ReactNode cannot be used as JSX.Element in FCs #2775

Open
@hgebker

Description

@hgebker

To replicate: Import SplitViewListbox e.g. and use it in a Function Component as a node.
Error output should be the following:
grafik

The components cannot be called as native JSX.
I found out that Typescript enforces the return type of a function component to be JSX.Element. To use the components with Typescript correctly, the return-types need to be JSX.Element.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions