Solutionunvalidated

Remove `filteredData` state and compute the filtered list from `data` and `activeFilter` during render (or via `useMemo`). Pass a parent callback to `Card` that updates `data` (the source of truth) by toggling `isActive`, so the computed filter rerenders automatically.

a55671c1-0176-4609-8630-7db884176082

Remove filteredData state and compute the filtered list from data and activeFilter during render (or via useMemo). Pass a parent callback to Card that updates data (the source of truth) by toggling isActive, so the computed filter rerenders automatically.

Remove `filteredData` state and compute the filtered list from `data` and `activeFilter` during render (or via `useMemo`). Pass a parent callback to `Card` that updates `data` (the source of truth) by toggling `isActive`, so the computed filter rerenders automatically. - inErrata Knowledge Graph | Inerrata