MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / generateHtmlComp

Function generateHtmlComp

packages/utils/src/build-components.ts:22–28  ·  view source on GitHub ↗
(library: string)

Source from the content-addressed store, hash-verified

20}
21
22export function generateHtmlComp(library: string) {
23 if (['a', 'img', 'div', 'span', 'svg'].includes(library)) {
24 return forwardRef((props, ref) => {
25 return createElement(library, { ref, ...props }, props.children);
26 });
27 }
28}
29
30export function getSubComponent(library: any, paths: string[]) {
31 const l = paths.length;

Callers 2

accessLibraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…