diff --git a/README.md b/README.md index fba01d3..b100aa5 100644 --- a/README.md +++ b/README.md @@ -84,39 +84,38 @@ const App = () => ( ## 🔨 Usage for SSR ##### 如:create-next-app -项目根目录创建components文件夹,并在其中创建Header.js +创建文件`./pages/_document.js` ```jsx -import React from 'react' -import Head from 'next/head' +import Document, { Html, Head, Main, NextScript } from 'next/document' -const Header = () => ( -
*/} +
+ + +