Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 2027121

Browse files
committed
external
1 parent 6417062 commit 2027121

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/JSXV4.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ React.createElement(Comp.make, {x, y:7, @optional z})
7070
React.createElement(Comp.make, {x, key: "7"})
7171
```
7272

73-
**Interface**
73+
**Interface And External**
7474

7575
```rescript
7676
@react.component
@@ -83,6 +83,8 @@ type props<'x, 'y, 'z> = {x: 'x, @optional y: 'y, @optional z: 'z}
8383
let make: (props<int, int, int>) => React.element
8484
```
8585

86+
Since an external is a function declaration, it follows the same rule.
87+
8688
**Component Name**
8789

8890
Use the V3 convention for names, and make sure the generated

0 commit comments

Comments
 (0)