Files
Users-Wrench/src/components/Helpers/DataIteration.jsx
T
2023-05-24 15:01:39 +01:00

16 lines
339 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) => children({ datas: value }))}
</>
);
}
export default DataIteration;