Skip to content

Use ReactNode type for children props #2385

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chack1172
Copy link
Contributor

ReactNode includes all the possible renderable types. The current definitions misses some types, this will throw type error for example:

<Deferred data="options" fallback={<span>Fallback</span>}
<div>first line</div>
<div>second line</div>
</Deferred>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant