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:
parent
4d9eb200d9
commit
f378448b79
|
@ -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": {
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
import { jsComponent as About } from './About.re'
|
||||
import React from 'react'
|
||||
|
||||
export default () => <About />
|
|
@ -10,4 +10,4 @@ let make = (_children) => {
|
|||
</div>
|
||||
};
|
||||
|
||||
let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
|
||||
let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
|
|
@ -1,3 +0,0 @@
|
|||
import { jsComponent as Index } from './Index.re'
|
||||
|
||||
export default () => <Index />
|
|
@ -10,4 +10,4 @@ let make = (_children) => {
|
|||
</div>
|
||||
};
|
||||
|
||||
let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
|
||||
let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
|
Loading…
Reference in a new issue