rsnext/test/integration/missing-document-component-error/pages/index.js
JJ Kasper a7550bf1d7
Add error when document component isn't rendered (#16459)
If a custom `_document` is added but not all of the expected document components are rendered it can cause unintended errors as noticed in https://github.com/vercel/next.js/issues/10219 so this adds detecting when one of the expected document components isn't rendered and shows an error. 

Closes: https://github.com/vercel/next.js/issues/10219
2020-08-24 02:42:51 +00:00

3 lines
63 B
JavaScript

export default function Index() {
return <p>Index page</p>
}