react-loop-z
Version:
React utility for loops and conditional rendering. Simple, clean, and flexible.
8 lines (7 loc) • 391 B
TypeScript
import React from "react";
import { ILoopProps } from "./types";
export interface IObjectLoopProps<T = React.ReactNode> extends ILoopProps {
of?: Record<string, T>;
render?: (value: T, key: string, index: number) => React.ReactNode;
}
export declare function ObjectLoop<T = React.ReactNode>({ of, as, propsTagAs, children, render, }: IObjectLoopProps<T>): React.ReactElement;