Skip to content
Myr

fix(jsx): allow JSXNode function component results (#5476)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Shaurya Saria · committed by GitHub · parent 6d73a74 · Browse files · 2 files+8 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−1 removed

  • tests:+6 added−0 removed
  • other:+2 added−1 removed

2 files+8 added−1 removed

modified:src/jsx/base.test.tsx+6 added
modified:src/jsx/base.ts+2 added-1 removed
22 unmodified lines
23// eslint-disable-next-line @typescript-eslint/no-explicit-any24export type Props = Record<string, any>25type FunctionComponentResult =26 | HtmlEscapedString27 | JSXNode28 | Child[]28 | Promise<HtmlEscapedString | Child[]>29 | Promise<HtmlEscapedString | JSXNode | Child[]>30 | null31export type FC<P = Props> = {32 (props: P): FunctionComponentResult33 defaultProps?: Partial<P> | undefined
457 unmodified lines