1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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

Fixes #4028
This commit is contained in:
Tony Kovanen 2018-04-27 00:05:04 +07:00 committed by Tim Neutkens
parent 30b0e36c71
commit 2457df5d06
3 changed files with 10 additions and 5 deletions

View file

@ -1,7 +1,7 @@
{
"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": [

View file

@ -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>
};
};

View 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",