From 2457df5d06de51501ad9a78de9f6e9d85aacdffb Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Fri, 27 Apr 2018 00:05:04 +0700 Subject: [PATCH] examples/with-reasonml: use bs-next for Next.Link (#4214) Fixes #4028 --- examples/with-reasonml/bsconfig.json | 2 +- examples/with-reasonml/components/Header.re | 10 +++++++--- examples/with-reasonml/package.json | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/examples/with-reasonml/bsconfig.json b/examples/with-reasonml/bsconfig.json index 13dd3ae1eb89c..30030a72ba2cd 100644 --- a/examples/with-reasonml/bsconfig.json +++ b/examples/with-reasonml/bsconfig.json @@ -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": [ diff --git a/examples/with-reasonml/components/Header.re b/examples/with-reasonml/components/Header.re index 737a07ea6f7df..7d02472fe5661 100644 --- a/examples/with-reasonml/components/Header.re +++ b/examples/with-reasonml/components/Header.re @@ -6,7 +6,11 @@ let make = (_children) => { ...component, render: (_self) =>
- (ReasonReact.stringToElement("Home")) - (ReasonReact.stringToElement("About")) + + (ReasonReact.stringToElement("Home")) + + + (ReasonReact.stringToElement("About")) +
-}; \ No newline at end of file +}; diff --git a/examples/with-reasonml/package.json b/examples/with-reasonml/package.json index 7d45ce2923ccf..91a7052fc50c6 100644 --- a/examples/with-reasonml/package.json +++ b/examples/with-reasonml/package.json @@ -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",