found icon indicating copy to clipboard operation
found copied to clipboard

Type of children does not match basic example

Open steinybot opened this issue 1 year ago • 0 comments

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.

steinybot avatar Feb 07 '24 02:02 steinybot