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 Component.propTypes instead of static propTypes #116

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

Conversation

BaderSerhan
Copy link

A simple enhancement, as the title suggests. Using Component.propTypes will make it easier for developers who use IDEs to view the list of props that the component has, and see suggestions for prop names as he types. Also, in case any prop was made isRequired, a warning will be shown to the developer to insert required attribute... by the inspector.

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