roko-date-picker
Version:
A simple single/multi date picker
9 lines (8 loc) • 336 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = require("react");
// Use generic type T to allow flexibility on the type of items in the of array
const Each = ({ render, of }) => {
return react_1.Children.toArray(of.map((item, index) => render(item, index)));
};
exports.default = Each;