diff --git a/README.md b/README.md index f00137f2..df3ca107 100644 --- a/README.md +++ b/README.md @@ -286,20 +286,17 @@ import Document, { Head, Main, NextScript } from `next/document` export default class MyDocument extends Document { static async getInitialProps (ctx) { const props = await Document.getInitialProps(ctx) - // append a custom `value` - return { ...props, value: 'hi' } + return { ...props, customValue: 'hi there!' } } render () { return ( - {/* custom style */} - + - {/* set className to body */} - - {this.props.value} + + {this.props.customValue}