Commit 2457df5d authored by Tony Kovanen's avatar Tony Kovanen Committed by Tim Neutkens

examples/with-reasonml: use bs-next for Next.Link (#4214)

Fixes #4028
parent 30b0e36c
{
"name": "with-reasonml",
"sources": ["components", "pages"],
"bs-dependencies": ["reason-react"],
"bs-dependencies": ["reason-react", "bs-next"],
"reason": { "react-jsx": 2 },
"package-specs": ["commonjs"],
"bsc-flags": [
......
......@@ -6,7 +6,11 @@ let make = (_children) => {
...component,
render: (_self) =>
<div>
<a href="/" style=styles> (ReasonReact.stringToElement("Home")) </a>
<a href="/about" style=styles> (ReasonReact.stringToElement("About")) </a>
<Next.Link href="/">
<a style=styles> (ReasonReact.stringToElement("Home")) </a>
</Next.Link>
<Next.Link href="/about">
<a style=styles> (ReasonReact.stringToElement("About")) </a>
</Next.Link>
</div>
};
\ No newline at end of file
};
......@@ -12,7 +12,8 @@
"next": "latest",
"react": "^16.1.1",
"react-dom": "^16.1.1",
"reason-react": "^0.3.0"
"reason-react": "^0.3.0",
"bs-next": "^2.0.0"
},
"devDependencies": {
"bs-platform": "^2.1.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment