npm.io
5.0.0 • Published 1 year ago

@spark-web/ssr

Licence
Version
5.0.0
Deps
5
Size
13 kB
Vulns
0
Weekly
0

title: SSR isExperimentalPackage: true

renderStatic

Function that takes the HTML of a page (as a string) and returns:

  • html: (type: string) original HTML that was passed in
  • ids: (type: Array<string>) array of ids (class names referencing styles created by Emotion)
  • css: (type: string) CSS generated by Emotion from the static HTML string that was passed to it