MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getText

Function getText

packages/dev/s2-docs/src/CodePlatter.tsx:107–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 let [showShadcn, setShowShadcn] = useState(false);
106 // let [showCodeSandbox, setShowCodeSandbox] = useState(false);
107 let getText = () => getTextContent(codeRef.current!.querySelector('pre')!);
108 let {library} = useContext(CodePlatterContext);
109 if (!type) {
110 if (library === 'react-aria') {

Callers 1

handleCopyFunction · 0.70

Calls 1

getTextContentFunction · 0.85

Tested by

no test coverage detected