Skip to content

[Basic] React.HTMLProps doesn't work #128

Closed
@pavloko

Description

@pavloko

What cheatsheet is this about? (if applicable)
Basic cheatsheet

What's your issue or idea?
Write here

I'd like to propose to changing React.HTMLProps in favor of React.HTMLAttributes.

Looking at the type definitions of React, all HTML elements are defined with DetailedHTMLProps and it's using HTMLAttributes instead of HTMLProps.

With the following versions:

    "react": "16.8.6",
    "react-dom": "16.8.6"
    "@types/react": "16.8.22",
    "@types/react-dom": "16.8.4"

I'm seeing
Screen Shot 2019-06-28 at 10 30 13 PM

Metadata

Metadata

Assignees

Labels

BASICBasic Cheatsheet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions