Skip to content
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
@mununki

Description

@mununki

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.
image

compiler: v10.1.0.rc-3
rescript-react: v0.11.0.rc-3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions