MCPcopy Create free account
hub / github.com/blacksmith-eth/blacksmith / customRender

Function customRender

testing/index.tsx:6–11  ·  view source on GitHub ↗
(ui: ReactElement, options?: RenderOptions)

Source from the content-addressed store, hash-verified

4import { SWRConfig } from "swr";
5
6function customRender(ui: ReactElement, options?: RenderOptions) {
7 return render(
8 <SWRConfig value={{ provider: () => new Map() }}>{ui}</SWRConfig>,
9 options,
10 );
11}
12
13function userRender(ui: ReactElement, options?: RenderOptions) {
14 return {

Callers 1

userRenderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected