Dynamic Inventory Explorer with Virtualized Table
Flipkart's vast product catalog requires efficient tools for inventory management. As a critical component for sellers and internal teams, displaying and interacting with large datasets of products without performance bottlenecks is paramount. This problem challenges you to build a high-performance, interactive table component that can handle thousands of product entries, leveraging virtualization, sorting, and filtering capabilities.
Your primary task is to develop a React component that displays a list of products in a performant, interactive table. You will be provided with mock product data.
ID, Name, Category, Price, Stock, and Last Updated.Name, Category, Price, and Stock columns. Clicking a column header should toggle between ascending, descending, and no sort states for that column.Name and Category using a text input field (case-insensitive substring match).Price (min/max) and Stock (min/max) using numerical input fields.Name, Category, Price, Stock) correctly sorts the data in ascending and descending order.Name and Category text inputs accurately narrows down the displayed products.Price and Stock range inputs correctly filters products based on min/max values.Constraints
react-window or react-virtualized to manage rendering efficiency. Custom virtualization is allowed but may take more time.Product interface and mock data generation are provided in App.tsx.Loading editor...