We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tested in JSX4 automatic mode: The following code
@react.component let make = (~priority as _, ~text="Test") => React.string(text)
results in the error
The value text can't be found
/cc @mununki
The text was updated successfully, but these errors were encountered:
It is transformed to
let make = (_: props<'priority, 'text>) => { let text = switch text { | Some(text) => text | None => "Test" } (~text="Test") => React.string(text) }
It should be something like
let make = ({?text, _}: props<'priority, 'text>) => { let text = switch text { | Some(text) => text | None => "Test" } React.string(text) }
Sorry, something went wrong.
_
Successfully merging a pull request may close this issue.
Tested in JSX4 automatic mode: The following code
results in the error
/cc @mununki
The text was updated successfully, but these errors were encountered: