import { flush, state, stats } from '@weft-js/core' import { render } from '@weft-js/core/dom' import { CELLS, count, glyph, harness } from '../shared/harness.js' const n = state(0) const cells = Array.from({ length: CELLS }, () => state(0)) function Counter() { count.renders++ return } function Cell(props: { i: number }) { count.renders++ return {glyph(cells[props.i].value)} } function Grid() { count.renders++ return