1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-reasonml/components/Header.re
Adrian Li f9c6e12037 Update reason example to version 3 syntax and fix errors (#3347)
* update dependencies

* add bsconfig refmt version

* update to new syntax

* add dependency on concurrently for dev convenience

* fix dev script
2017-11-28 14:15:03 +01:00

12 lines
365 B
ReasonML

let component = ReasonReact.statelessComponent("Header");
let styles = ReactDOMRe.Style.make(~marginRight="10px", ());
let make = (_children) => {
...component,
render: (_self) =>
<div>
<a href="/" style=styles> (ReasonReact.stringToElement("Home")) </a>
<a href="/about" style=styles> (ReasonReact.stringToElement("About")) </a>
</div>
};