Files
Users-Wrench/src/components/Helpers/DataIteration.jsx
T
2024-03-22 12:45:34 +01:00

16 lines
353 B
React

import React from "react";
function DataIteration(props) {
const { datas, startLength, endLength, children } = props;
return (
<>
{datas &&
datas?.length >= endLength &&
datas?.slice(startLength, endLength)
.map((value, index) => children({ datas: value, index }))}
</>
);
}
export default DataIteration;