Skip to content

nextjs/no-styled-jsx-in-document Correctness

What it does

Prevent usage of styled-jsx in pages/_document.js.

Why is this bad?

Custom CSS like styled-jsx is not allowed in a Custom Document.

Example

javascript

References

Released under the MIT License.