This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Doc string for React component #715
Closed
Description
I got a report that the doc string for the react component is not showing on the application site.
module C = {
/** type make: unit => React.element */
@react.component
let make = () => React.null
}
module C1 = {
@react.component
/** type make: unit => React.element */
let make = () => React.null
}
module C2 = {
/** type make: unit => React.element */
@react.component @module("foo")
external make: unit => React.element = "comp"
}
module C3 = {
@react.component @module("foo")
/** type make: unit => React.element */
external make: unit => React.element = "comp"
}
<C /> // hover on `C`
In the vscode, it shows only type information.
compiler: v10.1.0.rc-3
rescript-react: v0.11.0.rc-3
Metadata
Metadata
Assignees
Labels
No labels