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

Function getComponentByTagName

src/components/config.ts:78–84  ·  view source on GitHub ↗
(tagName: string)

Source from the content-addressed store, hash-verified

76const components = new Map<string, ComponentConfig>();
77
78export const getComponentByTagName = (tagName: string): ComponentConfig => {
79 const config = components.get(tagName);
80 if (!config) {
81 throw `Unknown component ${tagName}`;
82 }
83 return config;
84};
85
86export function registerComponent<Props>(
87 config: ComponentConfig

Callers 1

index.tsFile · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected