diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/next/package.json | 8 | ||||
-rw-r--r-- | examples/next/pages/index.tsx | 5 | ||||
-rw-r--r-- | examples/react/package.json | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/examples/next/package.json b/examples/next/package.json index 654fff104..c4513988c 100644 --- a/examples/next/package.json +++ b/examples/next/package.json @@ -1,11 +1,11 @@ { "name": "@bun-examples/next", - "version": "0.0.39", + "version": "0.0.42", "main": "index.js", "dependencies": { - "next": "11.1.2", - "react": "^17.0.2", - "react-dom": "^17.0.2", + "next": "12.0.2", + "react": "alpha", + "react-dom": "alpha", "react-is": "^17.0.2" }, "devDependencies": { 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}> diff --git a/examples/react/package.json b/examples/react/package.json index c23ce9536..d5e516e16 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -1,6 +1,6 @@ { "name": "@bun-examples/react", - "version": "0.0.34", + "version": "0.0.37", "dependencies": { "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", |