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

Function divFactory

packages/renderer-core/src/components/Div.tsx:4–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { IGeneralConstructor } from '../types';
3
4export default function divFactory(): IGeneralConstructor {
5 const { PureComponent, createElement } = adapter.getRuntime();
6 return class Div extends PureComponent {
7 static displayName = 'Div';
8
9 static version = '0.0.0';
10
11 render() {
12 return createElement('div', this.props);
13 }
14 };
15}

Callers 2

rendererFactoryFunction · 0.85
baseRendererFactoryFunction · 0.85

Calls 1

getRuntimeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…