Skip to content

Relax record type validation in ReactComponent #667

@melanore

Description

@melanore

Original issue within Feliz repo - #463
Reason for validation - pmmmwh/react-refresh-webpack-plugin#258

Can we relax the validation to allow lowercased record types?

type example = { value: string }
[<ReactComponent>]
let Example (props: example) = Html.div [ ]

Lowercased type will not break react-refresh and will allow the alternative to use of anonymous records - the latter are handy in a single client project scenario, but can not be used in a cross project scenario: anonymous record props and react component defined in project A and is called from project B.

Pull request - #666

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions