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",
|
"name": "with-reasonml",
|
||||||
"sources": ["components", "pages"],
|
"sources": ["components", "pages"],
|
||||||
"bs-dependencies": ["reason-react"],
|
"bs-dependencies": ["reason-react", "bs-next"],
|
||||||
"reason": { "react-jsx": 2 },
|
"reason": { "react-jsx": 2 },
|
||||||
"package-specs": ["commonjs"],
|
"package-specs": ["commonjs"],
|
||||||
"bsc-flags": [
|
"bsc-flags": [
|
||||||
|
|
|
@ -6,7 +6,11 @@ let make = (_children) => {
|
||||||
...component,
|
...component,
|
||||||
render: (_self) =>
|
render: (_self) =>
|
||||||
<div>
|
<div>
|
||||||
<a href="/" style=styles> (ReasonReact.stringToElement("Home")) </a>
|
<Next.Link href="/">
|
||||||
<a href="/about" style=styles> (ReasonReact.stringToElement("About")) </a>
|
<a style=styles> (ReasonReact.stringToElement("Home")) </a>
|
||||||
|
</Next.Link>
|
||||||
|
<Next.Link href="/about">
|
||||||
|
<a style=styles> (ReasonReact.stringToElement("About")) </a>
|
||||||
|
</Next.Link>
|
||||||
</div>
|
</div>
|
||||||
};
|
};
|
|
@ -12,7 +12,8 @@
|
||||||
"next": "latest",
|
"next": "latest",
|
||||||
"react": "^16.1.1",
|
"react": "^16.1.1",
|
||||||
"react-dom": "^16.1.1",
|
"react-dom": "^16.1.1",
|
||||||
"reason-react": "^0.3.0"
|
"reason-react": "^0.3.0",
|
||||||
|
"bs-next": "^2.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bs-platform": "^2.1.0",
|
"bs-platform": "^2.1.0",
|
||||||
|
|
Loading…
Reference in a new issue