with-rebass example's _document.js
does nothing
#40366
Labels
examples
Issue was opened via the examples template.
_document.js
does nothing
#40366
Verify canary release
Provide environment information
Which example does this report relate to?
with-rebass
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
I'm checking #39871 to learn how to write a functional style
Document
component.The
_docuemnt.js
in this example does nothing: It only renders an empty<style>
tag and an extra<div class="root">
tag.In both
next dev
andnext build
, all styles are collected and rendered into<body>
at server side.Expected Behavior
I don't know. Maybe it should collect all styles into the
<style>
tag in<head>
, like thewith-styled-components
example does.To Reproduce
npx create-next-app --example with-rebass with-rebass-app
npm run build
, back up.next/server/pages/index.html
somewherepages/_document.js
npm run build
againindex.html
filesThe text was updated successfully, but these errors were encountered: