# `
` should not be used in \_document.js's ``
#### Why This Error Occurred
Adding `` in `pages/_document.js` will lead to unexpected results with `next/head` since `_document.js` is only rendered on the initial pre-render.
#### Possible Ways to Fix It
Set `` in `pages/_app.js` instead:
```js
// pages/_app.js
import React from 'react'
import Head from 'next/head'
function MyApp({ Component, pageProps }) {
return (
<>
My new cool app
>
)
}
export default MyApp
```
### Useful Links
- [The issue this was reported in: #4596](https://github.com/vercel/next.js/issues/4596)