REFERENCE BUILD · CHALLENGE 4

The Workshop

The same catalog, with a search box that works together with the category buttons instead of fighting them. Type star and then click Simulation: you get an honest empty state, not a stale card left over from the last thing you did.

What changed from the starter

One object, query, holds everything being asked for. Both controls write into it and then call the same refresh(). Adding a third control later means adding a third field — no existing code has to learn about it. Compare that with the version where each control hides and shows cards on its own: with two controls that needs two rules, and with three it needs six, one for every pair.