v1.0.9
SSR
Experimental
This component is considered experimental. Reach out to the Spark team to find out more about what this means.
Installation
Install
yarn add @spark-web/ssr
npm
@spark-web/ssr
Source GitHub.com
Bundle unpkg.com
renderStatic
Function that takes the HTML of a page (as a string) and returns:
html
: (type:string
) original HTML that was passed inids
: (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