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

Add ...children rest parameter to unstable_createElement #2761

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

Conversation

faceyspacey
Copy link

@faceyspacey faceyspacey commented Feb 14, 2025

Mirror React.createElement(component, props, ...children) as close as possible without breaking current implementation of unstable_createElement.

This provides a way forward for passing children via the rest parameter, which allows a variable number of a children without warning about missing key props as occurs with props.children.

Mirror `React.createElement(component, props, ...children)` as close as possible without breaking current implementation of unstable_createElement
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8604be8:

Sandbox Source
react-native-web-examples Configuration

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