Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FormidableLabs/react-live
/ renderToMarkup
Function
renderToMarkup
packages/react-live/src/utils/test/renderer.js:18–19 ·
view source on GitHub ↗
(element)
Source
from the content-addressed store, hash-verified
16
* separately via `@testing-library/react`.
17
*/
18
const
renderToMarkup = (element) =>
19
ReactDOMServer.renderToStaticMarkup(element);
20
21
export
const
render = (element) => renderToMarkup(element) || null;
22
Callers
2
render
Function · 0.85
shallow
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected