mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
14 lines
367 B
ReasonML
14 lines
367 B
ReasonML
|
let component = ReasonReact.statelessComponent "Header";
|
||
|
let styles = ReactDOMRe.Style.make
|
||
|
marginRight::"10px"
|
||
|
();
|
||
|
let make _children => {
|
||
|
...component,
|
||
|
render: fun _self => {
|
||
|
<div>
|
||
|
<a href="/" style=styles> (ReasonReact.stringToElement "Home") </a>
|
||
|
<a href="/about" style=styles> (ReasonReact.stringToElement "About") </a>
|
||
|
</div>
|
||
|
}
|
||
|
};
|