docs: fix next/script example causing hydration errors (#63401)
Related #51242
React will error `In HTML, <script> cannot be a child of <html>. This
will cause a hydration error.` when `script` is rendered under `html`
directly. The examples in our docs are causing this hydration error.
Moving it under `body` tag will fix the hydration error
Closes NEXT-2834
Co-authored-by:
Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment