mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
parent
30b0e36c71
commit
2457df5d06
|
@ -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": [
|
||||
|
|
|
@ -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>
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue