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

[v15.5] Deprecate React.createFactory #8964

Closed

Conversation

koba04
Copy link
Contributor

@koba04 koba04 commented Feb 9, 2017

This PR is for adding deprecation warnings for React.createFactory, which is listed in #8854.

In development environment, React.createFactory is ReactElementValidator.createFactory so I added a warning only in ReactElementValidator.
Should I add this in ReactElement too?

@acdlite
Copy link
Collaborator

acdlite commented Feb 9, 2017

Looks like you have some lint errors, otherwise this looks good.

Should I add this in ReactElement too?

Nah we only warn in dev.

@koba04 koba04 force-pushed the deprecate-react-create-factory branch from efe47d6 to 056ccca Compare February 10, 2017 01:52
@koba04
Copy link
Contributor Author

koba04 commented Feb 10, 2017

@acdlite Thanks! Fixed it!

@sebmarkbage
Copy link
Collaborator

Sorry about the confusion. :/ We're actually going to keep this because I have some ideas for making it useful for optimizations. We're just going to remove the built-in DOM helpers.

@koba04
Copy link
Contributor Author

koba04 commented Feb 14, 2017

No problem. I'm looking forward to your ideas!

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

Successfully merging this pull request may close these issues.

4 participants