UNPKG

nexora

Version:

A lightweight, production-ready JavaScript library for building user interfaces, supporting JSX.

8 lines (7 loc) 293 B
import { Component } from '../../core'; /** * Freeze a component to prevent unnecessary re-renders * @param Component - The component to freeze * @returns A new component that only updates when props change */ export declare function freeze<P = {}>(Component: Component<P>): Component<P>;