Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ts] components can return ComponentChildren #3482

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Mar 17, 2022

  1. [ts] components can return ComponentChildren

    Previously `FunctionComponent` was only typed as returning `VNode | null`, but Preact supports returning Arrays as well as any VDOM text primitive (boolean, etc). Class component render methods were typed as returning `ComponentChild`, which doesn't reflect the fact that this method can also return Arrays.
    developit authored Mar 17, 2022
    Configuration menu
    Copy the full SHA
    cbd774e View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2022

  1. Configuration menu
    Copy the full SHA
    1f57d5d View commit details
    Browse the repository at this point in the history