提交 f378448b 编写于 作者: T Tony Kovanen 提交者: Tim Neutkens

with-reasonml: use default exports (#4217)

上级 4d9eb200
......@@ -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": {
......
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([||]));
\ No newline at end of file
let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
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([||]));
\ No newline at end of file
let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册