Skip to content

Commit f95debf

Browse files
committed
Update API usage
1 parent 82b4413 commit f95debf

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

app/javascript/packs/HelloWorldBundle.res

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ type context = {
1515
"serverSide": bool,
1616
}
1717

18-
let component = (props: props, _context: context) => <HelloWorld nameProp={props["name"]} />
18+
let component = (props: props, _context: context) => {
19+
(. ()) => <HelloWorld nameProp={props["name"]} />
20+
}
21+
1922

2023
ReactOnRails.register("HelloWorld", component)

app/javascript/packs/HelloWorldBundleServer.res

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ type context = {
1818
"serverSide": bool,
1919
}
2020

21-
let component = (props: props, _context: context) => <HelloWorld nameProp={props["name"]} />
21+
let component = (props: props, _context: context) => {
22+
(. ()) => <HelloWorld nameProp={props["name"]} />
23+
}
2224

2325
ReactOnRails.register("HelloWorld", component)

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3191,6 +3191,14 @@ nth-check@^2.0.1:
31913191
dependencies:
31923192
boolbase "^1.0.0"
31933193

3194+
null-loader@^4.0.1:
3195+
version "4.0.1"
3196+
resolved "https://registry.yarnpkg.com/null-loader/-/null-loader-4.0.1.tgz#8e63bd3a2dd3c64236a4679428632edd0a6dbc6a"
3197+
integrity sha512-pxqVbi4U6N26lq+LmgIbB5XATP0VdZKOG25DhHi8btMmJJefGArFyDg1yc4U3hWCJbMqSrw0qyrz1UQX+qYXqg==
3198+
dependencies:
3199+
loader-utils "^2.0.0"
3200+
schema-utils "^3.0.0"
3201+
31943202
object-assign@^4.1.1:
31953203
version "4.1.1"
31963204
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"

0 commit comments

Comments
 (0)