From 157404d9164ad9f94f03681b7d3cb1d6462e4886 Mon Sep 17 00:00:00 2001 From: chris weber Date: Sun, 5 Jan 2020 00:35:08 +0100 Subject: [PATCH] [docs] Improve Next.js usage (#19075) --- docs/pages/_document.js | 5 ----- docs/src/modules/components/Head.js | 5 +++++ examples/create-react-app-with-typescript/public/index.html | 2 +- examples/create-react-app/public/index.html | 2 +- examples/nextjs-with-typescript/pages/_app.tsx | 4 ++++ examples/nextjs-with-typescript/pages/_document.tsx | 5 ----- examples/nextjs/pages/_app.js | 4 ++++ examples/nextjs/pages/_document.js | 5 ----- examples/preact/public/index.html | 2 +- examples/ssr/server.js | 3 +-- 10 files changed, 17 insertions(+), 20 deletions(-) diff --git a/docs/pages/_document.js b/docs/pages/_document.js index 0c19a78b474f54..ebbfb63104724e 100644 --- a/docs/pages/_document.js +++ b/docs/pages/_document.js @@ -35,11 +35,6 @@ export default class MyDocument extends Document { return ( - {/* Use minimum-scale=1 to enable GPU rasterization. */} - {/* manifest.json provides metadata used when your web app is added to the homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/ diff --git a/docs/src/modules/components/Head.js b/docs/src/modules/components/Head.js index 8b14f98ff33047..201ba8eae61ad9 100644 --- a/docs/src/modules/components/Head.js +++ b/docs/src/modules/components/Head.js @@ -12,6 +12,11 @@ export default function Head(props) { return ( + {/* Use minimum-scale=1 to enable GPU rasterization. */} + {title} {/* Twitter */} diff --git a/examples/create-react-app-with-typescript/public/index.html b/examples/create-react-app-with-typescript/public/index.html index 079d36adb3be60..1be5fcdacef506 100644 --- a/examples/create-react-app-with-typescript/public/index.html +++ b/examples/create-react-app-with-typescript/public/index.html @@ -3,7 +3,7 @@ - + +