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

Commit 1112ae6

Browse files
committed
clean up the spec about shared props
1 parent c052cb9 commit 1112ae6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cli/JSXV4.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,23 +383,23 @@ type sp = {x: string, y: string}
383383
type sp1<'a> = {x: 'a, y: string}
384384
type sp2<'a, 'b> = {x: 'a, y: 'b}
385385
386-
module C1 = {
386+
module C = {
387387
@react.component(:sp)
388388
let make = (~x, ~y) => body
389389
}
390390
391-
module C2 = {
391+
module C1 = {
392392
@react.component(:sp1<'a>)
393393
let make = (~x, ~y) => body
394394
}
395395
396-
module C3 = {
396+
module C2 = {
397397
@react.component(:sp2<'a, 'b>)
398398
let make = (~x, ~y) => body
399399
}
400400
401-
module C4 = {
401+
module C3 = {
402402
@react.component(:sp)
403-
let make = (~x:int, ~y) => body // type annotation is ignored by type sp1
403+
let make = (~x:int, ~y) => body // type annotation is ignored by type sp
404404
}
405405
```

0 commit comments

Comments
 (0)