diff --git a/example/package.json b/example/package.json index 193c13d..1cc0091 100644 --- a/example/package.json +++ b/example/package.json @@ -10,7 +10,7 @@ "start": "next start" }, "dependencies": { - "next": "^9.3.5", + "next": "^9.5.3", "node-fetch": "^2.6.0", "react": "^16.13.1", "react-dom": "^16.13.1", diff --git a/example/pages/[pageId].tsx b/example/pages/[pageId].tsx index d3b1541..1055cf6 100644 --- a/example/pages/[pageId].tsx +++ b/example/pages/[pageId].tsx @@ -1,5 +1,7 @@ +import React from "react"; import { NotionRenderer, BlockMapType } from "react-notion"; import Head from "next/head"; +import Link from "next/link"; import fetch from "node-fetch"; export async function getServerSideProps(context) { @@ -39,7 +41,15 @@ const NotionPage = ({ blockMap }) => { {title} - + ( + {renderComponent()} + ) + }} + />