rsnext/examples/with-reasonml/components/Header.re
Anthony Mittaz 7f471a4463 Tweak ReasonML example (#7254)
* Lock bs-platform to 5.0.3 (avoiding issues with reason language server)

https://github.com/jaredly/reason-language-server/issues/275

* Reformat code

* Ask bucklescript to use es6 instead of commonjs

* Rework getInitialProps (can now use a promise)

* Ignore .bsb.lock
2019-05-05 13:02:27 +02:00

15 lines
346 B
ReasonML

let styles = ReactDOMRe.Style.make(~marginRight="10px", ());
[@react.component]
let make = () => {
<div>
<Next.Link href="/">
<a style=styles> {ReasonReact.string("Home")} </a>
</Next.Link>
<Next.Link href="/about">
<a style=styles> {ReasonReact.string("About")} </a>
</Next.Link>
</div>;
};
let default = make;