Skip to content

Properties with dash defined with Flow aren't detected #1299

Closed
@FezVrasta

Description

@FezVrasta
type Props = {
  'data-action': string,
};

function Button({ 'data-action': dataAction }: Props) {
  return <div data-action={dataAction} />;
}

error 'data-action' is missing in props validation react/prop-types

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