import { useMeasure } from '@react-hookz/web'; import { useContext } from 'react'; import { FixedSizeGrid as IndexedGrid } from 'react-window'; import Cell from './Cell'; import styles from './MatrixVis.module.css'; import StickyGrid from './StickyGrid'; import { SettingsContext } from './context'; function Grid() { const { rowCount, columnCount, cellSize, setRenderedItems } = useContext(SettingsContext); const [wrapperSize, wrapperRef] = useMeasure(); return (
{wrapperSize && ( {Cell} )}
); } export default Grid;