Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2457df5d
Commit
2457df5d
authored
Apr 26, 2018
by
Tony Kovanen
Committed by
Tim Neutkens
Apr 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/with-reasonml: use bs-next for Next.Link (#4214)
Fixes #4028
parent
30b0e36c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
bsconfig.json
examples/with-reasonml/bsconfig.json
+1
-1
Header.re
examples/with-reasonml/components/Header.re
+7
-3
package.json
examples/with-reasonml/package.json
+2
-1
No files found.
examples/with-reasonml/bsconfig.json
View file @
2457df5d
{
{
"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"
:
[
...
...
examples/with-reasonml/components/Header.re
View file @
2457df5d
...
@@ -6,7 +6,11 @@ let make = (_children) => {
...
@@ -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>
};
};
\ No newline at end of file
examples/with-reasonml/package.json
View file @
2457df5d
...
@@ -12,7 +12,8 @@
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment