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

Document that rules dealing with prop types recognize static types, too #2546

Merged
merged 1 commit into from May 12, 2020

Commits on May 12, 2020

  1. [Docs] Clean up examples in rule docs

    These examples use `createReactClass` a lot, which is legacy at this
    point. I'm modifying examples to primarily use function components
    because those are the ones people are using most often today. Other ways
    of defining a component are just here to show that this rule recognizes
    them, too.
    
    Also, document that rules like `prop-types` and `require-default-props`
    recognize static types, too
    silvenon authored and ljharb committed May 12, 2020
    Copy the full SHA
    c481a26 View commit details
    Browse the repository at this point in the history