Skip to content

Commit f378448

Browse files
rase-timneutkens
authored andcommitted
with-reasonml: use default exports (vercel#4217)
1 parent 4d9eb20 commit f378448

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

examples/with-reasonml/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "with-reasonml",
33
"version": "1.0.0",
44
"scripts": {
5-
"dev": "concurrently \"bsb -clean-world -make-world -w\" \"next -w\"",
6-
"build": "bsb -clean-world -make-world && next build",
7-
"start": "bsb -clean-world -make-world && next start -w"
5+
"dev": "bsb -clean-world -make-world && next dev lib/js",
6+
"build": "bsb -clean-world -make-world && next build lib/js",
7+
"start": "next start lib/js"
88
},
99
"license": "ISC",
1010
"dependencies": {

examples/with-reasonml/pages/about.js

-4
This file was deleted.

examples/with-reasonml/pages/About.re renamed to examples/with-reasonml/pages/about.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ let make = (_children) => {
1010
</div>
1111
};
1212

13-
let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
13+
let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));

examples/with-reasonml/pages/index.js

-3
This file was deleted.

examples/with-reasonml/pages/Index.re renamed to examples/with-reasonml/pages/index.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ let make = (_children) => {
1010
</div>
1111
};
1212

13-
let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
13+
let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));

0 commit comments

Comments
 (0)