1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

with-reasonml: use default exports (#4217)

This commit is contained in:
Tony Kovanen 2018-04-27 10:35:30 +07:00 committed by Tim Neutkens
parent 4d9eb200d9
commit f378448b79
5 changed files with 5 additions and 12 deletions

View file

@ -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": {

View file

@ -1,4 +0,0 @@
import { jsComponent as About } from './About.re'
import React from 'react'
export default () => <About />

View file

@ -10,4 +10,4 @@ let make = (_children) => {
</div>
};
let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));

View file

@ -1,3 +0,0 @@
import { jsComponent as Index } from './Index.re'
export default () => <Index />

View file

@ -10,4 +10,4 @@ let make = (_children) => {
</div>
};
let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));