MCPcopy Create free account
hub / github.com/react-component/select / genData

Function genData

docs/examples/scroll-loading.tsx:5–10  ·  view source on GitHub ↗
(len: number)

Source from the content-addressed store, hash-verified

3import '../../assets/index.less';
4
5function genData(len: number) {
6 return new Array(len).fill(0).map((_, index) => ({
7 label: `label ${index}`,
8 value: index,
9 }));
10}
11
12const Loading = ({ onLoad }) => {
13 React.useEffect(() => {

Callers 1

scroll-loading.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…