Open
Description
Example:
type myVariant = AAAAA | BBBBB
module MyComponent = {
@react.component
let make = (~x: myVariant) => (x :> string)->React.string
}
<MyComponent x=
Autcomplete correctly suggests AAAAA
and BBBBB
. When I select AAAAA
, I get
<MyComponent x={AAAAA}
The braces are unnecessary here, so I usually remove them again manually to get
<MyComponent x=AAAAA