mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
16 lines
344 B
ReasonML
16 lines
344 B
ReasonML
|
let component = ReasonReact.statelessComponent "Index";
|
||
|
let make _children => {
|
||
|
...component,
|
||
|
render: fun _self => {
|
||
|
<div>
|
||
|
<Header />
|
||
|
<p>(ReasonReact.stringToElement "HOME PAGE is here!")</p>
|
||
|
<Counter />
|
||
|
</div>
|
||
|
}
|
||
|
};
|
||
|
let jsComponent =
|
||
|
ReasonReact.wrapReasonForJs
|
||
|
::component
|
||
|
(fun _jsProps => make [||])
|