Closed
Description
Repro
module Outer = {
@react.component
let make = () => {
module Inner = {
@react.component
let make = () => <div />
}
<Inner />
}
}
causes the error:
React: props need to be labelled arguments.
If you are working with refs be sure to wrap with React.forwardRef.
If your component doesn't have any props use () or _ instead of a name.
without any location information.
This used to work in JSX v3.
Activity