@web-package/react-widgets
Version:
This is package that provides templates that can significantly reduce CSS development works in a react development environment.
12 lines (11 loc) • 460 B
TypeScript
import { ReactNode } from "react";
/**
* This component conditionally renders its children. It is memoized using React.memo
* and only re-renders when the `value` prop changes. If the `value` remains the same
* between renders, the component skips re-rendering, optimizing performance.
*/
export declare const ConditionalRender: import("react").MemoExoticComponent<(props: {
value: any;
active?: boolean;
children: ReactNode;
}) => ReactNode>;