MCPcopy
hub / github.com/react/react / createComponentSelector

Function createComponentSelector

packages/react-reconciler/src/ReactTestSelectors.js:81–88  ·  view source on GitHub ↗
(
  component: component()

Source from the content-addressed store, hash-verified

79 | TestNameSelector;
80
81export function createComponentSelector(
82 component: component(),
83): ComponentSelector {
84 return {
85 $$typeof: COMPONENT_TYPE,
86 value: component,
87 };
88}
89
90export function createHasPseudoClassSelector(
91 selectors: Array<Selector>,

Callers 2

ExampleFunction · 0.85

Calls

no outgoing calls

Tested by 1

ExampleFunction · 0.68