MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / registerComponent

Function registerComponent

src/components/config.ts:86–94  ·  view source on GitHub ↗
(
  config: ComponentConfig
)

Source from the content-addressed store, hash-verified

84};
85
86export function registerComponent<Props>(
87 config: ComponentConfig
88): ReactNodeGuiTag<Props> {
89 if (components.has(config.tagName)) {
90 throw `A component with tagName: ${config.tagName} already exists. This base component will be ignored`;
91 }
92 components.set(config.tagName, config);
93 return config.tagName;
94}

Callers 15

index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected