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

Implement React.__spread() as extend() #53

Closed
wants to merge 2 commits into from

Conversation

stefwalter
Copy link

This function used by JSX compiled code regularly when transferring properties.

https://facebook.github.io/react/docs/transferring-props.html

@stefwalter
Copy link
Author

Example JSX code:

                return <Event { ...itm } />;

Compiled to:

                return React.createElement(Event, React.__spread({},   itm ));

@Lucifier129
Copy link
Owner

Regular React will remove React.__spread in the future, visit: facebook/react#6444

And now we have already a solution to support React.__spread.

Thx for PR ;)

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.

2 participants