MCPcopy
hub / github.com/PaulLeCam/react-leaflet / createElement

Function createElement

packages/core/src/generic.ts:38–43  ·  view source on GitHub ↗
(
    props: PropsWithoutRef<P>,
    context: LeafletContextInterface,
  )

Source from the content-addressed store, hash-verified

36 P extends ControlOptions,
37>(createInstance: (props: PropsWithoutRef<P>) => E) {
38 function createElement(
39 props: PropsWithoutRef<P>,
40 context: LeafletContextInterface,
41 ): LeafletElement<E> {
42 return createElementObject(createInstance(props), context)
43 }
44 const useElement = createElementHook(createElement)
45 const useControl = createControlHook(useElement)
46 return createLeafComponent(useControl)

Callers 1

createElementHookFunction · 0.85

Calls 1

createElementObjectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…