From 660147f661f5f097d0874a03127fc159efeea82f Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Mon, 19 Dec 2016 14:41:21 -0800 Subject: [PATCH] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a5e38c51..b381c857 100644 --- a/README.md +++ b/README.md @@ -276,9 +276,7 @@ export default ({ url }) => ( ### Custom `` -Pages in `Next.js` skip the definition of the surrounding document's markup. For example, you never include ``, ``, etc. - -In order to support custom server-rendering pipelines (such as rendering CSS with `styled-components` or `glamor`), you can implement `getInitialProps` at the `` level: +Pages in `Next.js` skip the definition of the surrounding document's markup. For example, you never include ``, ``, etc. But we still make it possible to override that: ```jsx import Document, { Head, Main, NextScript } from `next/document` @@ -306,7 +304,7 @@ export default class MyDocument extends Document { } ``` -The `ctx` object is equivalent to the one received in all [`getInitialProps`](#fetching-data-and-component-lifecycle) hooks, plus: +The `ctx` object is equivalent to the one received in all [`getInitialProps`](#fetching-data-and-component-lifecycle) hooks, with one addition: - `renderPage` (`Function`) a callback that executes the actual React rendering logic (synchronously). It's useful to decorate this function in order to support server-rendering wrappers like Aphrodite's [`renderStatic`](https://github.com/Khan/aphrodite#server-side-rendering)