Implement virtual scrolling in Table component for improved performance
- Added useRef to track container and first row for height measurement. - Introduced rowHeight state to dynamically calculate row height. - Implemented range state to manage visible rows based on scroll position. - Added scroll event listener to compute visible range efficiently. - Adjusted rendering logic to display only a subset of rows based on the computed range. - Included top and bottom spacers to maintain table height during scrolling. - Refactored input change handling to remain functional with new rendering logic.
This commit is contained in: