Skip to content

How to inject data like classes on/before ssr on document root or body #73

Answered by cyco130
sharmapukar217 asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, sorry, I got it all wrong! I think you may make it work but it's probably invalid HTML.

You're right, there isn't a way yet.

It will work with either an HTML shell customization hook or with the Head component (and returning head from prerender) but it's not implemented yet.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@sharmapukar217
Comment options

@sharmapukar217
Comment options

Comment options

You must be logged in to vote
2 replies
@sharmapukar217
Comment options

@sharmapukar217
Comment options

Answer selected by sharmapukar217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants