MCPcopy
hub / github.com/Khan/aphrodite / renderStatic

Function renderStatic

src/exports.js:78–91  ·  view source on GitHub ↗
(renderFunc /* : RenderFunction */)

Source from the content-addressed store, hash-verified

76 ? null
77 : {
78 renderStatic(renderFunc /* : RenderFunction */) {
79 reset();
80 startBuffering();
81 const html = renderFunc();
82 const cssContent = flushToString();
83
84 return {
85 html: html,
86 css: {
87 content: cssContent,
88 renderedClassNames: getRenderedClassNames(),
89 },
90 };
91 },
92 };
93
94/**

Callers

nothing calls this directly

Calls 4

resetFunction · 0.90
startBufferingFunction · 0.90
flushToStringFunction · 0.90
getRenderedClassNamesFunction · 0.90

Tested by

no test coverage detected