Propagate component props

Propagate component props in JavaScript — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
Pass props down to the card component so each instance shows different content. Given an array…
Pass props down to the card component so each instance shows different content. Given an array products with objects having id, title, imgSrc, summary, iterate and call the component for each product, set a data-product-id attribute on the root element, and ensure title text is escaped and not injected as HTML.

Improve — make it easier to accept

+
Before I ship this props propagation, make reviewer-friendly changes: surface where defaults are…
Before I ship this props propagation, make reviewer-friendly changes: surface where defaults are applied, document which prop is required (title), and add a validation step that logs a warning when a product lacks imgSrc so reviewers know why a placeholder appears. Keep the API plain JS objects so non-React engineers can reuse it.

Decide — diagnose the stuck moment

+
I loop products and mount cards, but after updating the products array the UI sometimes shows stale…

Some cards show the previous product after re-render.

I loop products and mount cards, but after updating the products array the UI sometimes shows stale titles for a split second. The PM and the test engineer expect instant consistency. I can't tell if this is a diffing problem, a reuse bug, or event-handler closure holding old data. What is the likely cause and the best immediate change to ensure each mounted card always reflects its current props?

Become — change the pattern

+
Across feature work we often pass the same object references into components and then mutate them,…

We keep reusing the same mutable objects as props and bug reports spike.

Across feature work we often pass the same object references into components and then mutate them, causing intermittent UI mismatches and confusing bugs. Where is the workflow breaking down and what single habit should the team adopt to reduce these prop-mutation bugs going forward?

Next to this one

Other programming language work people do in JavaScript.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.