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

Use the new elementType PropType #633

Closed
sindresorhus opened this issue Feb 16, 2019 · 2 comments · Fixed by #640
Closed

Use the new elementType PropType #633

sindresorhus opened this issue Feb 16, 2019 · 2 comments · Fixed by #640

Comments

@sindresorhus
Copy link
Contributor

See facebook/prop-types#211

We should use it instead of PropType.func in most places.

@maddieeiddam
Copy link
Contributor

I'm going to start working on this if that's cool :)

@maddieeiddam
Copy link
Contributor

@sindresorhus can you think of any instances where PropTypes.func should NOT be replaced with elementType?

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

Successfully merging a pull request may close this issue.

3 participants