Skip to content
New issue

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

Optional React prop with default value marked as not read #1049

Open
DZakh opened this issue Aug 13, 2024 · 0 comments
Open

Optional React prop with default value marked as not read #1049

DZakh opened this issue Aug 13, 2024 · 0 comments

Comments

@DZakh
Copy link
Contributor

DZakh commented Aug 13, 2024

image

module El = {
  @react.component
  let make = (~foo=React.null) => {
    foo
  }
}

let a = <El />
Js.log(a)

@fhammerschmidt fhammerschmidt transferred this issue from rescript-lang/reanalyze Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants