Skip to content

[question] Type Props for basic JSX elements #5865

Closed

Description

@cprodescu

Are there any packages that define the list of props that a react JSX element can take?
We would like to type our components as exact, but it's a pain to manually list all of these.

Activity

  1. cprodescu commented on Feb 28, 2018

    @cprodescu
    Author

    These should also be listed in the props sections of $JSXIntrinsics definitions in https://github.com/facebook/flow/blob/60e640c2287c2e7b9d0f261e4c8a617763005f1e/lib/react-dom.js#L246

    A few questions for the friendly maintainers (cc @samwgoldman):

    • Are there any plans on this on the roadmap?
    • Is this something you would accept PRs for or do you prefer flow react-dom bindings to remain unopinionated about props of JSX intrinsics?
  2. motiz88 commented on Aug 6, 2018

    @motiz88
    Contributor

    Essentially a duplicate of #3773

  3. goodmind commented on Jun 22, 2019

    @goodmind
    Contributor

    Duplicate of #3773

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions