---
title: "Discussion on \"Drill down. All the way — even when the real code is five files away\" | Hashnode"
description: "Discussion on \"Drill down. All the way — even when the real code is five files away\". Click a card on screen and it should just take you to the code. Most tools stop at the first wrapper, the first re-export, the first .map(). Here's what it takes not to stop."
url: "https://hashnode.com/posts/drill-down-all-the-way-even-when-the-real-code-is-five-files-away/6a9483fb99149e1ef2588d3d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Drill down. All the way — even when the real code is five files away](https://crossui.hashnode.dev/drill-down-all-the-way-even-when-the-real-code-is-five-files-away?utm_source=hashnode&utm_medium=feed)

Click a card on screen and it should just take you to the code. Most tools stop at the first wrapper, the first re-export, the first .map(). Here's what it takes not to stop.

Aug 30 · 8 min read · crossui.hashnode.dev  
Read the article

-   [#react](https://hashnode.com/tag/react)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#ast](https://hashnode.com/tag/ast)
-   [#component-tree](https://hashnode.com/tag/component-tree)
-   [#ux](https://hashnode.com/tag/ux)

## Written by

[Jack Li](https://hashnode.com/@linb)

@linb · Montreal, Canada

  
[View profile](https://hashnode.com/@linb)

Full-stack developer, creator of CrossUI Studio

## Responses 2

Markdown supported · ⌘↵ to post

[Tarun Sharma](https://hashnode.com/@101beardo)

[Sep 1](https://hashnode.com/posts/drill-down-all-the-way-even-when-the-real-code-is-five-files-away/6a9483fb99149e1ef2588d3d/comment/6a96d7604c1c66b42f28f78a)

The call on not guessing which .map iteration you clicked is the right one for a static tool, but worth naming the alternative: the fiber tree carries the key and index at runtime, so a tool that hooks the renderer instead of just parsing the AST can disambiguate the iteration. The tradeoff is you're then tied to a running app and React internals that move between versions. Static gets you predictable, runtime gets you specific, hard to have both.

The AI-diff-layer point lands. The one I'd add: a change inside a map callback can also be reading from a scope it shouldn't, closing over a loop variable or reaching module state. That isn't a "which layer" question but it shows up the same way in a diff, looks per-item, behaves per-render.

[Jack Li](https://hashnode.com/@linb)

[Sep 1](https://hashnode.com/posts/drill-down-all-the-way-even-when-the-real-code-is-five-files-away/6a9483fb99149e1ef2588d3d/comment/6a96d7604c1c66b42f28f78a#reply-6a96efe58978b297773dc63e)

Exactly. Static gives us predictable results, while runtime can be more specific. The scope issue inside map callbacks is another tricky case too.
