Commit f378448b authored by Tony Kovanen's avatar Tony Kovanen Committed by Tim Neutkens

with-reasonml: use default exports (#4217)

parent 4d9eb200
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
"name": "with-reasonml", "name": "with-reasonml",
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
"dev": "concurrently \"bsb -clean-world -make-world -w\" \"next -w\"", "dev": "bsb -clean-world -make-world && next dev lib/js",
"build": "bsb -clean-world -make-world && next build", "build": "bsb -clean-world -make-world && next build lib/js",
"start": "bsb -clean-world -make-world && next start -w" "start": "next start lib/js"
}, },
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
......
import { jsComponent as About } from './About.re'
import React from 'react'
export default () => <About />
...@@ -10,4 +10,4 @@ let make = (_children) => { ...@@ -10,4 +10,4 @@ let make = (_children) => {
</div> </div>
}; };
let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||])); let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
\ No newline at end of file
import { jsComponent as Index } from './Index.re'
export default () => <Index />
...@@ -10,4 +10,4 @@ let make = (_children) => { ...@@ -10,4 +10,4 @@ let make = (_children) => {
</div> </div>
}; };
let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||])); let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment