MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / App

Function App

icon-component/src/App.tsx:8–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const IconFont = createFromIconfont('//at.alicdn.com/t/c/font_4443338_a2wwqhorbk4.js');
7
8function App() {
9 const ref = useRef<SVGSVGElement>(null);
10 const ref2 = useRef<SVGSVGElement>(null);
11
12 return (
13 <div>
14 <div style={ {padding: '50px'} }>
15 <IconAdd size='40px' ref={ref}></IconAdd>
16 <IconEmail spin></IconEmail>
17 <IconEmail style={{color: 'blue', fontSize: '50px'}}></IconEmail>
18 </div>
19 <div style={ {padding: '50px'} }>
20 <IconFont type="icon-shouye-zhihui" size="40px" ref={ref2}></IconFont>
21 <IconFont type="icon-gerenzhongxin-zhihui" fill="blue" size="40px"></IconFont>
22 </div>
23 </div>
24 );
25}
26
27export default App;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected