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

Function App

popover-component/src/App.tsx:3–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import Popover from './Popover';
2
3export default function App() {
4
5 const popoverContent = <div>
6 光光光
7 <button onClick={() => {alert(1)}}>111</button>
8 </div>;
9
10 return <Popover
11 content={popoverContent}
12 placement='bottom'
13 trigger='click'
14 style={{margin: '200px'}}
15 >
16 <button>点我点我</button>
17 </Popover>
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected