Files
users-myfit/src/components/Helpers/DataIteration.jsx
T
2023-01-30 16:46:25 -05:00

17 lines
348 B
React
Executable File

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;