【发布时间】:2019-07-18 06:49:33
【问题描述】:
我在将移动元标记导入 nextJS 应用程序时遇到问题。 根据此处的文档,这应该可以 https://nextjs.org/docs#populating-head
但我没有看到标题或我自己的任何元属性被渲染。 我看到的是:
<!DOCTYPE html><html><head><meta charSet="utf-8" class="next-head"/>
这看起来像是某种默认值。
import Link from 'next/link'
import Head from 'next/head'
import Header from '../components/Header'
import BaseLayout from '../components/BaseLayout.js'
const Index = () => (
<BaseLayout>
<Head>
<title>HSK App</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
</Head>
<Link href='/quizList'>
<h3>HSK Quiz App!</h3>
</Link>
</BaseLayout>
)
export default Index
帮助表示赞赏!
【问题讨论】: