Skip to content

Commit 8e483c2

Browse files
committed
fix: Fixed the missing Html tag warning in the _document.js file
1 parent 9588879 commit 8e483c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pages/_document.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Document, { Head, Main, NextScript } from 'next/document';
1+
import Document, { Html, Head, Main, NextScript } from 'next/document';
22
// Import styled components ServerStyleSheet
33
import { ServerStyleSheet } from 'styled-components';
44

@@ -21,7 +21,7 @@ export default class MyDocument extends Document {
2121

2222
render() {
2323
return (
24-
<html>
24+
<Html>
2525
<Head>
2626
{/* Step 5: Output the styles in the head */}
2727
{this.props.styleTags}
@@ -30,7 +30,7 @@ export default class MyDocument extends Document {
3030
<Main />
3131
<NextScript />
3232
</body>
33-
</html>
33+
</Html>
3434
);
3535
}
3636
}

0 commit comments

Comments
 (0)