Skip to content

Type of children does not match basic example #1061

Open
@steinybot

Description

@steinybot

The basic example has one of the children as:

        new Redirect({
          from: 'baz',
          to: '/foo',
        }),

If this is converted to TypeScript then it does not type check. The return type of Redrirect.render is ReactNode and not ResolvedElement | undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions