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

Function getText

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

Source from the content-addressed store, hash-verified

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

Callers 1

handleCopyFunction · 0.70

Calls 1

getTextContentFunction · 0.85

Tested by

no test coverage detected