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

Function _loop

lib/Pagination.js:170–184  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

168 var nodes = [];
169
170 var _loop = function _loop(i) {
171 if (isEnd && current === i - 1) return 'break';
172 nodes.push(React.createElement(
173 'li',
174 { key: 'page-link-' + i, onClick: function onClick() {
175 return _this3.onPageChange(i);
176 },
177 className: current === i ? '_active _item' : '_item' },
178 React.createElement(
179 'span',
180 null,
181 i
182 )
183 ));
184 };
185
186 for (var i = start; i <= end; i++) {
187 var _ret = _loop(i);

Callers 1

Pagination.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…