Skip to content

Commit 7a168b1

Browse files
committed
add nested sample
1 parent 14f7640 commit 7a168b1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

analysis/examples/example-project/src/syntax/sample-highlighting.res

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,17 @@ module SomeComponent = {
5454
) => {
5555
React.null
5656
}
57+
58+
module Nested = {
59+
@react.component
60+
let make = (~children) => {
61+
<> {children} </>
62+
}
63+
}
5764
}
5865

5966
let jsx =
6067
<div>
6168
<SomeComponent someProp=123 otherProp="hello" thirdProp=Value fourth=#AnotherMember />
69+
<SomeComponent.Nested> {React.string("Nested")} </SomeComponent.Nested>
6270
</div>

0 commit comments

Comments
 (0)