MCPcopy Create free account
hub / github.com/flyfloor/react-component / getImgs

Function getImgs

demo/example/CarouselDemo.jsx:6–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4const src = ['ambition-morty', 'awkward-morty', 'despise', 'pride-morty', 'surprise-morty'];
5const prefix = 'https://raw.githubusercontent.com/jerryshew/design/master/png';
6const getImgs = function(){
7 let rtn = [];
8 for (let i of src){
9 rtn.push(<img key={i} src={`${prefix}/${i}.png`} style={{'width': '100%'}}/>);
10 }
11 return rtn;
12};
13
14const imgNodes = getImgs();
15

Callers 1

CarouselDemo.jsxFile · 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…