TypeScript definitions for React, the popular JavaScript library for building user interfaces
80
A React component library for rendering large datasets with optimized performance using memoization techniques.
name, email, and age, and a search term "john", the component filters and displays only matching users without unnecessary re-computation @testage values, the component calculates and displays the average age only when the data array changes @testtheme prop), the statistics are not recalculated @test@generates
import { FC } from 'react';
export interface User {
id: number;
name: string;
email: string;
age: number;
}
export interface DataGridProps {
data: User[];
searchTerm: string;
onDelete: (id: number) => void;
theme?: 'light' | 'dark';
}
/**
* A performance-optimized data grid component that displays user data
* with filtering capabilities and computed statistics.
*
* The component efficiently handles large datasets by memoizing expensive
* computations and stabilizing callback references.
*/
export const DataGrid: FC<DataGridProps>;Provides React hooks and component functionality for building the data grid with performance optimizations.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-types--reactdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10