diff --git a/examples/with-reasonml/package.json b/examples/with-reasonml/package.json
index 91a7052f..d28cf361 100644
--- a/examples/with-reasonml/package.json
+++ b/examples/with-reasonml/package.json
@@ -2,9 +2,9 @@
"name": "with-reasonml",
"version": "1.0.0",
"scripts": {
- "dev": "concurrently \"bsb -clean-world -make-world -w\" \"next -w\"",
- "build": "bsb -clean-world -make-world && next build",
- "start": "bsb -clean-world -make-world && next start -w"
+ "dev": "bsb -clean-world -make-world && next dev lib/js",
+ "build": "bsb -clean-world -make-world && next build lib/js",
+ "start": "next start lib/js"
},
"license": "ISC",
"dependencies": {
diff --git a/examples/with-reasonml/pages/about.js b/examples/with-reasonml/pages/about.js
deleted file mode 100644
index a9997ae5..00000000
--- a/examples/with-reasonml/pages/about.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import { jsComponent as About } from './About.re'
-import React from 'react'
-
-export default () =>
diff --git a/examples/with-reasonml/pages/About.re b/examples/with-reasonml/pages/about.re
similarity index 75%
rename from examples/with-reasonml/pages/About.re
rename to examples/with-reasonml/pages/about.re
index ad39b954..f1045656 100644
--- a/examples/with-reasonml/pages/About.re
+++ b/examples/with-reasonml/pages/about.re
@@ -10,4 +10,4 @@ let make = (_children) => {
};
-let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
\ No newline at end of file
+let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
diff --git a/examples/with-reasonml/pages/index.js b/examples/with-reasonml/pages/index.js
deleted file mode 100644
index 24ea8281..00000000
--- a/examples/with-reasonml/pages/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import { jsComponent as Index } from './Index.re'
-
-export default () =>
diff --git a/examples/with-reasonml/pages/Index.re b/examples/with-reasonml/pages/index.re
similarity index 74%
rename from examples/with-reasonml/pages/Index.re
rename to examples/with-reasonml/pages/index.re
index a62bc34d..b6966cd4 100644
--- a/examples/with-reasonml/pages/Index.re
+++ b/examples/with-reasonml/pages/index.re
@@ -10,4 +10,4 @@ let make = (_children) => {
};
-let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
\ No newline at end of file
+let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));