-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathCompletionJsx.res
50 lines (44 loc) · 999 Bytes
/
CompletionJsx.res
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
let someString = "hello"
ignore(someString)
// someString->st
// ^com
module SomeComponent = {
@react.component
let make = (~someProp) => {
let someInt = 12
let someArr = [React.null]
ignore(someInt)
ignore(someArr)
// someString->st
// ^com
<div>
{React.string(someProp)}
<div> {React.null} </div>
// {someString->st}
// ^com
// {"Some string"->st}
// ^com
// {"Some string"->Js.String2.trim->st}
// ^com
// {someInt->}
// ^com
// {12->}
// ^com
// {someArr->a}
// ^com
// <di
// ^com
</div>
}
}
module CompWithoutJsxPpx = {
type props = {name: string}
let make = ({name}) => {
ignore(name)
React.null
}
}
// <CompWithoutJsxPpx n
// ^com
// <SomeComponent someProp=>
// ^com