Skip to content

Conversation

@melanore
Copy link

Relax validation of record props defined within the same file as the react component.

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant