From a5181c8ed14cfe779299e9086fbac3c729d21a98 Mon Sep 17 00:00:00 2001
From: Jarred Sumner <jarred@jarredsumner.com>
Date: Tue, 2 Nov 2021 23:43:20 -0700
Subject: [examples] Display Next.js version in example

---
 examples/next/pages/index.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'examples/next/pages/index.tsx')

diff --git a/examples/next/pages/index.tsx b/examples/next/pages/index.tsx
index 237ec2604..3d58a2707 100644
--- a/examples/next/pages/index.tsx
+++ b/examples/next/pages/index.tsx
@@ -2,7 +2,7 @@ import Head from "next/head";
 import Link from "next/link";
 import React from "react";
 import styles from "../styles/Home.module.css";
-
+import nextPackage from "next/package.json";
 export async function getStaticProps(ctx) {
   return {
     props: {},
@@ -20,7 +20,8 @@ export default function Home({}) {
 
       <main className={styles.main}>
         <h1 className={styles.title}>
-          Welcome to <a href="https://nextjs.org">Next.js!</a>
+          Welcome to <a href="https://nextjs.org">Next.js!</a> v
+          {nextPackage.version}
         </h1>
 
         <p className={styles.description}>
-- 
cgit v1.2.3

