<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jack Lee</title>
    <description>The latest articles on DEV Community by Jack Lee (@linb).</description>
    <link>https://dev.to/linb</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F167185%2Fa03d48fd-2235-4fef-aa0a-9f5a2b9ea784.jpeg</url>
      <title>DEV Community: Jack Lee</title>
      <link>https://dev.to/linb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/linb"/>
    <language>en</language>
    <item>
      <title>Send someone the exact screen</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 30 Nov 2026 13:39:23 +0000</pubDate>
      <link>https://dev.to/linb/send-someone-the-exact-screen-2l8h</link>
      <guid>https://dev.to/linb/send-someone-the-exact-screen-2l8h</guid>
      <description>&lt;p&gt;You want someone to look at one thing. One card, on one page, in one repo.&lt;/p&gt;

&lt;p&gt;So you take a screenshot. They ask which file. You paste a path. They ask how to get to that screen. Ten messages for one look.&lt;/p&gt;

&lt;p&gt;In Studio the address bar is the link. Whatever you are looking at, the URL already says where it is. Copy it, paste it, and the other person lands where you are. Four things are worth knowing about that link, and one thing it does not do.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Copy the address bar
&lt;/h2&gt;

&lt;p&gt;Open a file. The URL is a plain path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://studio.crossui.com/app/sandbox/shadcn-admin/src/features/dashboard/components/analytics.tsx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read it left to right. &lt;code&gt;sandbox&lt;/code&gt; is where it opens. &lt;code&gt;shadcn-admin&lt;/code&gt; is the project. The rest is the file, the same path you would see in your editor.&lt;/p&gt;

&lt;p&gt;That is the whole link. Paste it into Slack or a PR comment, and whoever clicks it gets that file. Refresh keeps you on it. Back and Forward move through the files you opened, like on any other site.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://studio.crossui.com/app/sandbox/shadcn-admin/src/features/dashboard/components/analytics.tsx" rel="noopener noreferrer"&gt;Open that link&lt;/a&gt;. It is a real admin template. Nothing to install.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Point at one block, not the whole file
&lt;/h2&gt;

&lt;p&gt;A file often holds more than one component. &lt;code&gt;analytics.tsx&lt;/code&gt; has two: &lt;code&gt;Analytics&lt;/code&gt;, the section itself, and &lt;code&gt;SimpleBarList&lt;/code&gt;, the small bar list it uses.&lt;/p&gt;

&lt;p&gt;Pick one in the &lt;strong&gt;JSX Block Navigator&lt;/strong&gt; at the top. The address gets one more part:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;…/analytics.tsx?jsx=Analytics
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the link opens that block on its own, without the page around it. This is the one to send for "this section looks off".&lt;/p&gt;

&lt;p&gt;If you switch to &lt;strong&gt;Preview&lt;/strong&gt; before you copy, the link keeps that too: &lt;code&gt;&amp;amp;mode=preview&lt;/code&gt;. Design is the default, so it is never written.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.crossui.com%2Fimages%2Fgraphs%2Fsend-someone-the-exact-screen-1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.crossui.com%2Fimages%2Fgraphs%2Fsend-someone-the-exact-screen-1.png" alt="A Studio link to one component, pasted into a pull request comment" width="799" height="346"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Or press Share
&lt;/h2&gt;

&lt;p&gt;The share icon in the top bar builds the same links and labels them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Share this component&lt;/strong&gt;, or &lt;strong&gt;Share this file&lt;/strong&gt;: the block or file you are on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Share this showcase&lt;/strong&gt;: for the six showcases, the public page of the template instead of the editor. It says what the template is before it asks anyone to open it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copy link pinned to this commit&lt;/strong&gt;: for a copy of a repo. See step 4.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two things it does that the address bar does not.&lt;/p&gt;

&lt;p&gt;If you are working in a Local or Remote repo, the link it gives you is the sandbox copy of that repo. The other person does not have to connect anything to open it.&lt;/p&gt;

&lt;p&gt;And it only shows up where a link can work. A local folder is on your disk. A project you made yourself lives in your browser. Neither has an address anyone else could open, so there is no Share icon there at all.&lt;/p&gt;

&lt;h3&gt;
  
  
  Not open in Studio yet?
&lt;/h3&gt;

&lt;p&gt;Sometimes all you have is a GitHub address. The &lt;strong&gt;Make a link&lt;/strong&gt; form on the &lt;a href="https://studio.crossui.com/community-templates/" rel="noopener noreferrer"&gt;Community Templates page&lt;/a&gt; builds the same link without opening anything.&lt;/p&gt;

&lt;p&gt;Paste the GitHub address into &lt;strong&gt;Owner&lt;/strong&gt; or &lt;strong&gt;Repository&lt;/strong&gt; and it splits itself. Under &lt;strong&gt;Pin a branch, or link to one folder, file or component&lt;/strong&gt; you can add the &lt;strong&gt;Branch&lt;/strong&gt;, the &lt;strong&gt;Page&lt;/strong&gt; (the file) and the &lt;strong&gt;Component&lt;/strong&gt; (the block, same as &lt;code&gt;?jsx=&lt;/code&gt;). Pick &lt;strong&gt;Design&lt;/strong&gt; or &lt;strong&gt;Preview&lt;/strong&gt;, then &lt;strong&gt;Copy&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It makes the same kind of link as everything above, so the same rules hold. It opens a sandbox copy and never touches the repository. A private repository still won't open for someone who can't read it. If you write tutorials and want this as a button on your page, &lt;a href="https://blog.crossui.com/2026/06/add-try-in-studio-to-react-tutorials" rel="noopener noreferrer"&gt;that has its own post&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Pin it, so it shows the same thing next week
&lt;/h2&gt;

&lt;p&gt;A link to a repo names a branch:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;…/app/sandbox/github/&amp;lt;owner&amp;gt;/&amp;lt;repo&amp;gt;@dev/src/App.tsx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A branch moves. Someone pushes on Tuesday, and on Friday your bug report opens a different screen, or no bug at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Copy link pinned to this commit&lt;/strong&gt; adds the full commit hash:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;…/src/App.tsx?at=&amp;lt;the 40-character commit&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That link opens the repo as it was at that commit. Use it for bug reports and reviews, anything someone may open a week from now.&lt;/p&gt;

&lt;p&gt;One case to know about. If they already have a copy of that repo at a different commit, Studio does not replace it, because their copy may hold their own edits. It opens what they have and tells them the link was pinned to another commit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.crossui.com%2Fimages%2Fgraphs%2Fsend-someone-the-exact-screen-2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.crossui.com%2Fimages%2Fgraphs%2Fsend-someone-the-exact-screen-2.png" alt="The person who clicked the link lands on the same file and the same block" width="800" height="474"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  What the link does not carry
&lt;/h2&gt;

&lt;p&gt;Someone asked this under an earlier post, nearly word for word: &lt;em&gt;if I change a component and then copy the address, does the next person see my edits?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;No. The link names a place. Your edits stay in your browser.&lt;/p&gt;

&lt;p&gt;The person who clicks gets the project from its source. For a showcase, that is the template as we ship it. For a repo, it is the repo at the commit their copy starts from, or the pinned commit if you sent one. The pinned option says so itself: the code as it was, without your edits.&lt;/p&gt;

&lt;p&gt;So if you want them to see your change, put it somewhere they can read first. Push it to the branch, then send the link. For a small tweak, a screenshot next to the link is still fine. The link says where to look. The picture says what you changed.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who can open it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A showcase or a public repo:&lt;/strong&gt; anyone. No account needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A private repo:&lt;/strong&gt; only people who can read that repo. When the repo was opened with a token, Share first checks whether a stranger could read it, and if not, it says so instead of giving you a link. A private repo still unfurls into a normal-looking preview in Slack, so it is better to hear it up front.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A local folder:&lt;/strong&gt; no one. It is on your machine.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Where I use it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;PR comments.&lt;/strong&gt; "The empty state is wrong", plus a link to that block. The reviewer clicks once instead of checking out the branch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UI bug reports.&lt;/strong&gt; Pinned, so whoever picks it up next week sees what I saw.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Design handoff.&lt;/strong&gt; A link to the block in preview mode. The designer looks at the real component, not a picture of it.&lt;/p&gt;

&lt;p&gt;Next week is about the first of those: what a UI review looks like when step one is clicking a link like this.&lt;/p&gt;

&lt;p&gt;Until then, &lt;a href="https://studio.crossui.com/app/sandbox/shadcn-admin/src/features/dashboard/components/analytics.tsx?jsx=Analytics" rel="noopener noreferrer"&gt;open that one block&lt;/a&gt; and copy your address bar. That is most of this tutorial.&lt;/p&gt;

</description>
      <category>react</category>
      <category>frontend</category>
      <category>codereview</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The four things that stop a repo from rendering</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 16 Nov 2026 13:44:12 +0000</pubDate>
      <link>https://dev.to/linb/the-four-things-that-stop-a-repo-from-rendering-31dj</link>
      <guid>https://dev.to/linb/the-four-things-that-stop-a-repo-from-rendering-31dj</guid>
      <description>&lt;p&gt;Last week I wrote down &lt;a href="https://blog.crossui.com/2026/11/it-opened-blank-what-to-check" rel="noopener noreferrer"&gt;the order to check things in&lt;/a&gt; when a project opens blank. The last section of that post was a list: four things that do not open yet, named but not explained. People wrote in about that list, so here it is properly.&lt;/p&gt;

&lt;p&gt;One thing first, because it changes how you read the rest. None of these four is a feature we have not built. Each one is a place where some tool in the chain only recognises one spelling of a thing, and your repo uses the other one. That sounds like a small distinction. It is the difference between "this will never work" and "this breaks on a Tuesday for a reason you can see".&lt;/p&gt;

&lt;p&gt;Each section below is the same four questions. What you see. Why it happens. What we do about it. What you can do today.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. &lt;code&gt;The requested module '...' does not provide an export named 'Button'&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see.&lt;/strong&gt; Nothing renders, and the error card says that sentence. Not a stack trace, not a component name — a module and a missing name. If the module is one of your own files, the card points at the import line in the file that wrote it, with a line and column you can click.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens.&lt;/strong&gt; The package ships CommonJS only. It has no ES module entry at all.&lt;/p&gt;

&lt;p&gt;A browser cannot import CommonJS. So a package like that reaches the canvas through the CDN's CommonJS-to-ESM conversion, and that conversion has to guess which names to export. It does it by reading the CommonJS source with a static lexer — a parser that looks for the shapes a build tool normally writes, &lt;code&gt;exports.Button = ...&lt;/code&gt; and friends.&lt;/p&gt;

&lt;p&gt;When a package assigns its API through a helper the lexer has not met, the lexer finds nothing. We measured one: &lt;code&gt;@material-tailwind/react&lt;/code&gt; at 2.1.4, read with the same lexer the CDN itself uses, reports its exports as exactly &lt;code&gt;["__esModule"]&lt;/code&gt; — for the main entry and for every component subpath. The package has a &lt;code&gt;Button&lt;/code&gt;. The lexer cannot see it, because the file says &lt;code&gt;_export(exports, { Button: ... })&lt;/code&gt; plus a hand-rolled star helper.&lt;/p&gt;

&lt;p&gt;So &lt;code&gt;import { Button } from '@material-tailwind/react'&lt;/code&gt; fails. And it fails at &lt;strong&gt;link&lt;/strong&gt; time, before a single line of the module runs, which is why nothing renders rather than part of the page rendering. Linking is all-or-nothing.&lt;/p&gt;

&lt;p&gt;Worth knowing: deep imports and &lt;code&gt;?bundle&lt;/code&gt; do not escape this. Both end at the same lexer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What we do about it.&lt;/strong&gt; The names do exist at runtime — they are properties on the module's &lt;code&gt;default&lt;/code&gt; object, which is the CommonJS &lt;code&gt;module.exports&lt;/code&gt; the conversion handed over. So we rewrite the file that does the importing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// yours&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Button&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;ThemeProvider&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@material-tailwind/react'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// what runs&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;__cui_cjs_0&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@material-tailwind/react'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Button&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;ThemeProvider&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;__cui_cjs_0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two decisions in there that matter more than the rewrite itself.&lt;/p&gt;

&lt;p&gt;It rewrites &lt;strong&gt;your importing file, not the package URL.&lt;/strong&gt; There is a URL-level trick available — ask the CDN for named exports with a query parameter — and it is a trap. The parameter varies with whichever names a given file happens to use. So two files importing the same package get two different URLs. Two URLs means two module instances, which means a provider in one of them and its consumer in the other, looking at different contexts. Nothing says "the theme provider is right there and the component still cannot see it" quite like that. Rewriting the importer leaves the URL alone, so the package stays one instance.&lt;/p&gt;

&lt;p&gt;And it only fires when the package's own manifest says there is no ES module entry. Not on a hunch, not from a list of package names we maintain. If we have not read the manifest, we do nothing. A rewrite fired on a guess is worse than the error it replaces, and we have the scar to prove it: a framework package we serve ourselves once got caught by this gate, and the "fix" broke a module that had been working.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you can do.&lt;/strong&gt; Mostly nothing, and that is the point. The case we deliberately leave alone is &lt;code&gt;export * from 'some-cjs-package'&lt;/code&gt; — a star re-export has no list of names in it, so there is nothing to bind, and rewriting it would mean inventing names. If one of your barrel files does that, name the exports you actually use and it links.&lt;/p&gt;

&lt;p&gt;The other lever is the import map in &lt;strong&gt;Project Settings&lt;/strong&gt;: point the package at a build that ships ESM, if one exists. Many packages publish both and resolve to the CommonJS one by default.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. &lt;code&gt;require is not defined&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see.&lt;/strong&gt; The app renders, or part of it does, and then one view dies with that message. The card names the file and the line. Open the line and you find something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"assets/img/pattern_react.png"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;default&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Why it happens.&lt;/strong&gt; That is webpack. Create React App compiles that call into a module whose &lt;code&gt;.default&lt;/code&gt; is the final asset URL. It is the standard way to reference an image in that era of React project. And it sits directly in the markup, so there is no import at the top of the file to warn you.&lt;/p&gt;

&lt;p&gt;A browser module has no &lt;code&gt;require&lt;/code&gt;. There is nothing to call. The line throws when the component renders, which is why you get a half-drawn page and not a blank one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What we do about it.&lt;/strong&gt; We rewrite it. The ES module spelling of the same idea is an import, and the canvas already serves project assets as modules: ask for a &lt;code&gt;.png&lt;/code&gt; and you get a module whose default export is the URL.&lt;/p&gt;

&lt;p&gt;So each distinct asset &lt;code&gt;require&lt;/code&gt; in a file is hoisted into a real import at the top, and the binding is put where the call was. The &lt;code&gt;.default&lt;/code&gt; is consumed along with the call — leaving it behind would read &lt;code&gt;.default&lt;/code&gt; off a URL string and get &lt;code&gt;undefined&lt;/code&gt;, which is the same bug with the error message removed. Nothing special resolves these: they go through the ordinary import pipeline, aliases and all, exactly as if you had written the import by hand. One Creative Tim view we tested on had eleven of them.&lt;/p&gt;

&lt;p&gt;Two of the six templates on our Showcases page are from that era — &lt;code&gt;material-dashboard-react&lt;/code&gt; and &lt;code&gt;horizon-ui-chakra&lt;/code&gt; are both Create React App projects, with &lt;code&gt;src/index.js&lt;/code&gt; entries. They open. This rewrite is most of the reason.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you can do.&lt;/strong&gt; The narrowing is worth knowing, because it tells you which failures are still yours. We only rewrite &lt;code&gt;require&lt;/code&gt; of an &lt;strong&gt;asset&lt;/strong&gt; — image, font, stylesheet, the file types the runtime already classifies. &lt;code&gt;require('some-package')&lt;/code&gt; is left exactly where it is.&lt;/p&gt;

&lt;p&gt;That is deliberate. An asset import cannot fail to link, so hoisting it is free. But turning a conditional &lt;code&gt;require('some-package')&lt;/code&gt; into a top-level import would load that package unconditionally, in every render, including the branch that was never meant to reach it. That trade buys one working view and risks a working app. So if your &lt;code&gt;require&lt;/code&gt; is of a package, or the path is computed at runtime, you will see this message and the fix is one line in your file.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. The shell renders. Every route is empty.
&lt;/h2&gt;

&lt;p&gt;This one has no error message, which makes it the most confusing of the four. Nothing is thrown. The layout appears — sidebar, header, the frame of the thing — and the content area is blank.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens.&lt;/strong&gt; Your router is a generation behind the one we render.&lt;/p&gt;

&lt;p&gt;React Router v5 described routes with &lt;code&gt;&amp;lt;Switch&amp;gt;&lt;/code&gt; and &lt;code&gt;component=&lt;/code&gt;. v6 and after describe them with &lt;code&gt;&amp;lt;Routes&amp;gt;&lt;/code&gt; and &lt;code&gt;element=&lt;/code&gt;. These are not two spellings of one API; they are different components with different props. Code written for v5 and rendered against the current generation produces a router that matches nothing, which is not an error — an empty match is a legal outcome. So you get a frame and no page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What we do about it.&lt;/strong&gt; Two things, and the first one happens before you even open the project.&lt;/p&gt;

&lt;p&gt;The manifest check reads your &lt;code&gt;package.json&lt;/code&gt; when you join a repo and says so up front: this project uses &lt;code&gt;react-router-dom&lt;/code&gt; v5, whose routes are written with &lt;code&gt;&amp;lt;Switch&amp;gt;&lt;/code&gt; and &lt;code&gt;component=&lt;/code&gt;, so route-level pages may come up empty. It is a sentence, not a refusal — you still open the project, because plenty of it will render and you came to look at it. But you find out from a sentence instead of from a blank panel.&lt;/p&gt;

&lt;p&gt;At render time there is the &lt;strong&gt;Smart Wrapper&lt;/strong&gt; suggestion in the error card, which can put a router context around a file you opened on its own. That is worth separating from the version problem, because they look similar and are not the same thing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You opened &lt;code&gt;pages/dashboard.jsx&lt;/code&gt; directly, and it calls &lt;code&gt;useNavigate&lt;/code&gt; or reads the location. It needs a router &lt;strong&gt;above&lt;/strong&gt; it, which the running app had and your direct open does not. One click puts one back. This works regardless of generation.&lt;/li&gt;
&lt;li&gt;Your route &lt;strong&gt;definitions&lt;/strong&gt; are v5. No wrapper fixes that. The wrapper provides routing context; it does not translate &lt;code&gt;component=&lt;/code&gt; into &lt;code&gt;element=&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One detail from that wrapper, since this is the engineering post: the router we wrap with is the component router, not the data router. A data router installs its own error boundary. It catches a page's render error and paints React Router's error screen inside the canvas, so the error never reaches our card. You get a polite "unexpected error" panel instead of a file name and a line number. The component router gives the same routing context and lets errors propagate to the thing that can tell you where they came from.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you can do.&lt;/strong&gt; Open the page component directly rather than the route tree. You lose the navigation, you keep the page, and for looking at a UI that is usually the trade you wanted. If you need the real routes, upgrading the router is a real migration and we are not going to pretend otherwise.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. A file your toolchain and ours read differently
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see.&lt;/strong&gt; A syntax error on a line your editor is perfectly happy with. Often with a character in it that looks harmless — the one we keep hitting is a bare &lt;code&gt;&amp;amp;&lt;/code&gt; in JSX text, in a heading like &lt;code&gt;Billing &amp;amp; Invoices&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens.&lt;/strong&gt; Two parsers, same bytes, different answers. JSX has edge cases that are genuinely ambiguous, dialects that are configured rather than detected, and syntax proposals that one toolchain enables and another does not. Your build works because your build's parser was configured for your project, by you, possibly years ago.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What we do about it.&lt;/strong&gt; Less than for the other three, honestly, and the shape of what we do is worth saying.&lt;/p&gt;

&lt;p&gt;The manifest check catches the declared case: if your &lt;code&gt;package.json&lt;/code&gt; configures a dialect our parser does not promise to agree about — a Flow preset, for instance — you get told before you open, in the same sentence-not-a-refusal way.&lt;/p&gt;

&lt;p&gt;The undeclared case cannot be caught that way, because it needs the file's bytes and a disagreement that only shows up once something tries to read them. So it lands at render time, where the card names the file and the line. That is the whole mechanism. We cannot predict the disagreement; we can only make it cheap to find. Hence the clickable line number, and the report link that carries the details with it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you can do.&lt;/strong&gt; Report it. I know how that reads. But this is the one category where a single report changes behaviour for everyone who hits the same construct, because the fix is in our parser handling and not in your project. The bare &lt;code&gt;&amp;amp;&lt;/code&gt; got handled because somebody sent it.&lt;/p&gt;




&lt;h2&gt;
  
  
  And the fifth category, which is the biggest
&lt;/h2&gt;

&lt;p&gt;Four causes is not the set of all reasons a stranger's repo might not render. It is the set of reasons we have met often enough to name.&lt;/p&gt;

&lt;p&gt;That is why the manifest check warns and never blocks. A list of four that refused to open anything it did not recognise would reject projects that render fine, and it would be confidently wrong in exactly the cases nobody has reported yet. A warning that turns out to be unnecessary costs you one sentence. A refusal that turns out to be unnecessary costs you the project.&lt;/p&gt;

&lt;p&gt;So: your repo may fail for a fifth reason. The card will still tell you which file and which line, the copy is still complete, the tree and the editor still work. A blank canvas is not an empty project.&lt;/p&gt;




&lt;h2&gt;
  
  
  If you are here because something of yours did not open
&lt;/h2&gt;

&lt;p&gt;Go through &lt;a href="https://blog.crossui.com/2026/11/it-opened-blank-what-to-check" rel="noopener noreferrer"&gt;the checklist&lt;/a&gt; first. It is the "what do I do now" version of this post, in the order things actually go wrong. Two of its five steps cover most blank screens in about ten seconds.&lt;/p&gt;

&lt;p&gt;If you want to see what a working one looks like from the other side, &lt;a href="https://studio.crossui.com/app/sandbox/material-kit-react/src/main.tsx" rel="noopener noreferrer"&gt;open a template&lt;/a&gt; — no install, nothing to clone. And the note at the bottom of &lt;a href="https://studio.crossui.com/community-templates/" rel="noopener noreferrer"&gt;Community Templates&lt;/a&gt; says what gets through today, which is a shorter list than we would like and a longer one than it was.&lt;/p&gt;

&lt;p&gt;None of these four is "unsupported". Each is a place where something in the chain only recognises one spelling. That is a much better problem to have, because spellings can be learned — but only the ones somebody tells us about.&lt;/p&gt;

</description>
      <category>react</category>
      <category>debugging</category>
      <category>development</category>
      <category>cra</category>
    </item>
    <item>
      <title>Try four admin templates before you install one</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 02 Nov 2026 13:57:25 +0000</pubDate>
      <link>https://dev.to/linb/try-four-admin-templates-before-you-install-one-16n5</link>
      <guid>https://dev.to/linb/try-four-admin-templates-before-you-install-one-16n5</guid>
      <description>&lt;p&gt;You have eight tabs open and four candidates. Each one costs the same: clone it, install it, start the dev server, click around for two minutes, delete the folder. Call it forty minutes a template.&lt;/p&gt;

&lt;p&gt;By the time you are done with the third one you have forgotten what the first one's sidebar looked like.&lt;/p&gt;

&lt;p&gt;The expensive part is not the install. It is that you never get to see them next to each other. You compare a template you are looking at now against your memory of one you looked at on Tuesday, and memory of a UI is mostly the dashboard page, because the dashboard page is the screenshot in the README.&lt;/p&gt;




&lt;h2&gt;
  
  
  Open four tabs instead
&lt;/h2&gt;

&lt;p&gt;Four links, four tabs, nothing installed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://studio.crossui.com/app/sandbox/ant-design-pro/" rel="noopener noreferrer"&gt;ant-design-pro&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://studio.crossui.com/app/sandbox/material-dashboard-react/" rel="noopener noreferrer"&gt;material-dashboard-react&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://studio.crossui.com/app/sandbox/mantine-admin/" rel="noopener noreferrer"&gt;mantine-admin&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://studio.crossui.com/app/sandbox/shadcn-admin/" rel="noopener noreferrer"&gt;shadcn-admin&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One per camp: antd, MUI, Mantine, and shadcn — which is not a component library at all, it is source you copy into your own repo.&lt;/p&gt;

&lt;p&gt;The files come from one commit, read into a sandbox copy in your browser. Nothing lands on your disk. (If the one you want is not in this list, you can paste any GitHub repo in — &lt;a href="https://blog.crossui.com/2026/10/open-the-repo-you-were-about-to-clone" rel="noopener noreferrer"&gt;I wrote about that last week&lt;/a&gt;, and there is a link at the end of this post.)&lt;/p&gt;

&lt;p&gt;That is the whole setup. The rest of this is the part nobody writes down: what to actually look at.&lt;/p&gt;




&lt;h2&gt;
  
  
  What to look at
&lt;/h2&gt;

&lt;p&gt;Four checks. Each one is a thing you do, not an adjective.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Go past the dashboard
&lt;/h3&gt;

&lt;p&gt;Every admin template's dashboard is good. That is the page the author polished, and it is the one in every comparison article including the ones with screenshots.&lt;/p&gt;

&lt;p&gt;So open the pages nobody screenshots: settings, the basic profile, an empty state, a form with validation. That is where you find out whether someone kept going after the demo.&lt;/p&gt;

&lt;p&gt;The address keeps going after the project name, so you can land straight on a file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://studio.crossui.com/app/sandbox/ant-design-pro/src/pages/profile/basic/index.tsx
https://studio.crossui.com/app/sandbox/shadcn-admin/src/features/settings/account/account-form.tsx
https://studio.crossui.com/app/sandbox/mantine-admin/src/app/(dashboard)/dashboard/settings/page.tsx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open those three and you already know something the README did not tell you.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Drill into a card and count the layers
&lt;/h3&gt;

&lt;p&gt;Pick any card on the dashboard. Ctrl-click into it, then into what it is made of.&lt;/p&gt;

&lt;p&gt;You are answering one question: &lt;strong&gt;when I change this, how many files do I open?&lt;/strong&gt; A card that is three small components is three files. A card that is three hundred lines inline is one file, and every change to it is a merge conflict waiting for the second person on your team.&lt;/p&gt;

&lt;p&gt;Neither answer is wrong. They are different bets, and you are the one who has to live in the file.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Change one theme colour and watch where it goes
&lt;/h3&gt;

&lt;p&gt;This is the fastest architecture check I know, and it is where these four differ most.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;shadcn-admin&lt;/strong&gt; keeps its colours as CSS variables in &lt;code&gt;src/styles/theme.css&lt;/code&gt;. One file, light and dark in the same place.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mantine-admin&lt;/strong&gt; has one &lt;code&gt;src/styles/theme.ts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;material-dashboard-react&lt;/strong&gt; has two parallel trees: &lt;code&gt;src/assets/theme/base/colors.js&lt;/code&gt; and &lt;code&gt;src/assets/theme-dark/base/colors.js&lt;/code&gt;. Light and dark are maintained as twins, so every colour decision is made twice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ant-design-pro&lt;/strong&gt; does not have a theme folder at all. The look comes from antd's own token system, configured in &lt;code&gt;config/defaultSettings.ts&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Four reasonable designs. But "change the brand colour" is a different afternoon in each of them, and that is the kind of thing you want to know before you commit, not after.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Look at what it drags in
&lt;/h3&gt;

&lt;p&gt;Open &lt;code&gt;package.json&lt;/code&gt;. Count.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ant-design-pro             17 dependencies
material-dashboard-react   18
mantine-admin              25
shadcn-admin               43
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then look at what the numbers are made of, because the count alone lies. Eighteen of shadcn-admin's forty-three are &lt;code&gt;@radix-ui/*&lt;/code&gt; — one package per primitive, which is how that model works: you own the component source, you depend on the unstyled behaviour underneath. Seven of mantine-admin's twenty-five are &lt;code&gt;@mantine/*&lt;/code&gt;. ant-design-pro's seventeen are mostly &lt;code&gt;@ant-design/*&lt;/code&gt; and antd itself, which is one big library counted once.&lt;/p&gt;

&lt;p&gt;So: one heavy dependency, or twenty small ones. Again, not a ranking — but if your company has a review process for new packages, those two numbers mean very different amounts of paperwork.&lt;/p&gt;

&lt;p&gt;While you are there, look at the whole file tree. These four are 311, 316, 107 and 257 files. The 107 is Mantine. If "small enough to read in an afternoon" matters to you, that is a real difference and nobody puts it in a comparison table.&lt;/p&gt;




&lt;h2&gt;
  
  
  If the one you want is not here
&lt;/h2&gt;

&lt;p&gt;Paste the owner and repo name into &lt;a href="https://studio.crossui.com/community-templates/" rel="noopener noreferrer"&gt;Community Templates&lt;/a&gt; and you get a link in the same shape. Public repos work without an account, yours or anyone's.&lt;/p&gt;

&lt;p&gt;That is how you run these four checks against the template a colleague keeps recommending.&lt;/p&gt;




&lt;h2&gt;
  
  
  Two limits, and they matter
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;These four have been set up by us.&lt;/strong&gt; React version, path aliases, which CDN serves what, a shim here and there. A repo you paste in gets none of that. It might open with no work at all, and it might not — the difference between these four and an arbitrary repo is real and it is our doing, not the template's.&lt;/p&gt;

&lt;p&gt;I would rather you knew that now than discover it on the first repo you bring yourself and conclude the tool is flaky.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not every repo renders.&lt;/strong&gt; Some open blank, some open with an error card naming the file and line it stopped on. The usual reasons are dull and specific: a package that only ships CommonJS, a Create React App project calling &lt;code&gt;require()&lt;/code&gt; on an image, a router from a different generation than the code around it. The note at the bottom of the Community Templates page lists what currently gets through.&lt;/p&gt;




&lt;h2&gt;
  
  
  No ranking here
&lt;/h2&gt;

&lt;p&gt;I am not going to tell you which of the four is best. We show all of them, so we are the last people whose ranking you should take.&lt;/p&gt;

&lt;p&gt;What I will say is that the ranking was never the hard part. You already know whether your team writes Tailwind or imports a component library. The hard part is the thing you could not do cheaply before: see the settings page of four candidates in four tabs, in ten minutes, before anyone has typed &lt;code&gt;npm install&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Look first. Install the one that survives looking.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://studio.crossui.com/showcases/" rel="noopener noreferrer"&gt;Open the four.&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>mui</category>
      <category>frontendchallenge</category>
    </item>
    <item>
      <title>Open a GitHub React repo in the browser, no install</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 26 Oct 2026 12:00:00 +0000</pubDate>
      <link>https://dev.to/linb/open-a-github-react-repo-in-the-browser-no-install-3dc8</link>
      <guid>https://dev.to/linb/open-a-github-react-repo-in-the-browser-no-install-3dc8</guid>
      <description>&lt;p&gt;A while back I wrote about opening &lt;a href="https://blog.crossui.com/2026/07/preview-and-edit-material-kit-react-without-a-build" rel="noopener noreferrer"&gt;material-kit-react without a build&lt;/a&gt;. Step one of that post was "clone it first, then point Studio at the folder."&lt;/p&gt;

&lt;p&gt;Forget step one. You do not need the clone any more. And you do not need it for that template in particular, because it is one of the six we ship ready to open.&lt;/p&gt;

&lt;p&gt;This post is about the general case: some repo you found, that we have never heard of.&lt;/p&gt;




&lt;h2&gt;
  
  
  The box
&lt;/h2&gt;

&lt;p&gt;Go to &lt;a href="https://studio.crossui.com/community-templates/" rel="noopener noreferrer"&gt;Community Templates&lt;/a&gt;. There are two fields: &lt;strong&gt;Owner&lt;/strong&gt; and &lt;strong&gt;Repository&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Type them in. Or paste the whole GitHub address and let it split itself.&lt;/p&gt;

&lt;p&gt;Try &lt;code&gt;cruip&lt;/code&gt; and &lt;code&gt;tailwind-dashboard-template&lt;/code&gt; if you want something to hand. You get a link back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://studio.crossui.com/app/sandbox/github~&amp;lt;owner&amp;gt;~&amp;lt;repo&amp;gt;/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is the whole format. Owner and repo, separated by &lt;code&gt;~&lt;/code&gt;. You can write it by hand once you have seen it. Want a branch? &lt;code&gt;github~owner~repo@my-branch&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Open the link. The project renders.&lt;/p&gt;




&lt;h2&gt;
  
  
  What actually happens
&lt;/h2&gt;

&lt;p&gt;No clone. No &lt;code&gt;npm install&lt;/code&gt;. Nothing written to your disk.&lt;/p&gt;

&lt;p&gt;What happens instead: the files of &lt;strong&gt;one commit&lt;/strong&gt; are read over the network and kept in a sandbox copy in your browser. The repo is never touched. Not a fork, not a branch, no token, no app install on your GitHub account. If the repo is public, the link works, and the person you send it to does not need an account to look.&lt;/p&gt;

&lt;p&gt;It is a copy, and it is a copy of one moment. Push to the repo later and your open sandbox does not move with it. Reopen the link to get the new commit.&lt;/p&gt;

&lt;p&gt;The practical effect is that the cost of looking drops to a click. I used to decide whether a repo was worth forty minutes before I had seen a single screen of it. Now I look first and decide after. That changes which repos I bother with — mostly it means I check more of them, and I stop earlier on the ones that are not what the README implied.&lt;/p&gt;




&lt;h2&gt;
  
  
  The part you cannot do
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;You cannot commit or push from a sandbox copy.&lt;/strong&gt; There is no write path back. Edit all you like, change the theme, drag things around — none of it goes home.&lt;/p&gt;

&lt;p&gt;I want that to land before you spend an afternoon in one.&lt;/p&gt;

&lt;p&gt;To be precise about it: the copy is not read-only. Change whatever you like in it — restyle a page, rip a component apart, try the thing you would never try on a branch. It is a copy; nothing you do to it is dangerous. What it has no path to is the repo. You gave us no credentials and we touched nothing on your account, and that is exactly why there is no way back. You get a link anyone can open; in exchange the link cannot write.&lt;/p&gt;

&lt;p&gt;When you do want the edits to survive, there are two paths that write:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Local Folder&lt;/strong&gt; — open a folder on your own machine. Edits go to your files. Then commit with your own git, like always. (Pro.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git repository&lt;/strong&gt; — connect the repo properly, with credentials, and commit from inside Studio.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the honest split: sandbox for &lt;em&gt;looking&lt;/em&gt; and &lt;em&gt;playing&lt;/em&gt;, those two for &lt;em&gt;working&lt;/em&gt;. Most of what I do with other people's repos never needed to be saved.&lt;/p&gt;




&lt;h2&gt;
  
  
  Point the link at a thing, not at a project
&lt;/h2&gt;

&lt;p&gt;The address keeps going after the project. Add a file path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="nx"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//studio.crossui.com/app/sandbox/material-kit-react/src/pages/dashboard.tsx&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://studio.crossui.com/app/sandbox/material-kit-react/src/pages/dashboard.tsx" rel="noopener noreferrer"&gt;Open that one.&lt;/a&gt; It lands on the dashboard page of material-kit-react — the same template from that older post, now one of the six.&lt;/p&gt;

&lt;p&gt;Or go one level in, past the page file to the view that actually draws it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="nx"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//studio.crossui.com/app/sandbox/material-kit-react/src/sections/overview/view/overview-analytics-view.tsx&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://studio.crossui.com/app/sandbox/material-kit-react/src/sections/overview/view/overview-analytics-view.tsx" rel="noopener noreferrer"&gt;That one&lt;/a&gt; is where the cards and charts are laid out. The page file above it is a wrapper.&lt;/p&gt;

&lt;p&gt;Same shape for a repo you brought yourself — put the file path after &lt;code&gt;github~owner~repo&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This is the part I use most. "Look at this component" with a link that opens &lt;em&gt;on&lt;/em&gt; the component beats "clone this, then go to src slash sections slash overview."&lt;/p&gt;




&lt;h2&gt;
  
  
  Not every repo renders
&lt;/h2&gt;

&lt;p&gt;Some will open blank, or open with an error card instead of a screen.&lt;/p&gt;

&lt;p&gt;The common reasons are boring and specific: a package that only ships CommonJS, a Create React App project that does &lt;code&gt;require("assets/img/x.png")&lt;/code&gt;, a router from an older generation than the code around it. The error card names the file and the line it stopped on, which is usually enough to see which one you hit.&lt;/p&gt;

&lt;p&gt;There is a note at the bottom of the Community Templates page about what currently gets through. If a repo you care about does not open, that is worth telling us — the list of things we recognise grows from exactly those reports.&lt;/p&gt;

&lt;p&gt;I would rather say this plainly up front than have you find it on your third repo.&lt;/p&gt;




&lt;h2&gt;
  
  
  So
&lt;/h2&gt;

&lt;p&gt;Owner, repo, link. Send the link to someone and they see a running project, not a README.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://studio.crossui.com/community-templates/" rel="noopener noreferrer"&gt;Make one.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And if you only want to poke at something good first, the six we packed are already open: &lt;code&gt;ant-design-pro&lt;/code&gt;, &lt;code&gt;horizon-ui-chakra&lt;/code&gt;, &lt;code&gt;mantine-admin&lt;/code&gt;, &lt;code&gt;material-dashboard-react&lt;/code&gt;, &lt;code&gt;material-kit-react&lt;/code&gt;, &lt;code&gt;shadcn-admin&lt;/code&gt;. Same address shape, no owner needed:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://studio.crossui.com/app/sandbox/shadcn-admin/" rel="noopener noreferrer"&gt;https://studio.crossui.com/app/sandbox/shadcn-admin/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>github</category>
      <category>development</category>
    </item>
    <item>
      <title>You approved that UI PR without seeing it</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 05 Oct 2026 12:00:00 +0000</pubDate>
      <link>https://dev.to/linb/you-approved-that-ui-pr-without-seeing-it-39ba</link>
      <guid>https://dev.to/linb/you-approved-that-ui-pr-without-seeing-it-39ba</guid>
      <description>&lt;p&gt;The PR is called "Tweak card spacing + dark mode fixes." It's +184 −97 across six files.&lt;/p&gt;

&lt;p&gt;You read it. &lt;code&gt;p-4&lt;/code&gt; became &lt;code&gt;p-6&lt;/code&gt;. &lt;code&gt;bg-white&lt;/code&gt; became &lt;code&gt;bg-background&lt;/code&gt;. A card component got split in two, which honestly needed doing. Every line makes sense.&lt;/p&gt;

&lt;p&gt;You click Approve.&lt;/p&gt;

&lt;p&gt;Two days later someone posts a screenshot in the team channel. The cards on the settings page are crammed together. The component that got split is used there too. Nobody on the PR thought to look at that page.&lt;/p&gt;

&lt;p&gt;You didn't do anything wrong. You reviewed what you could see. The trouble is that the most important part of a UI change isn't in the diff.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two things the diff doesn't show
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What it looks like.&lt;/strong&gt; A diff is text. &lt;code&gt;p-4&lt;/code&gt; to &lt;code&gt;p-6&lt;/code&gt; is a single character in the diff and a different layout on screen. Dark mode, hover states, a narrow window: none of them show up in the diff.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What else it touches.&lt;/strong&gt; Six files changed. Twenty pages might use them. A diff lists the files that changed, not the files that depend on them. That split component, the barrel file whose exports moved: the diff won't tell you who imports them.&lt;/p&gt;

&lt;p&gt;To answer the first question you have to run the code. To answer the second you have to search the whole codebase. Neither happens just from reading a diff.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why nobody looks
&lt;/h2&gt;

&lt;p&gt;Looking is just expensive.&lt;/p&gt;

&lt;p&gt;To see a UI change you check out the branch. You reinstall, because the lockfile changed. You start the dev server, find the page, and maybe log in and create some test data. That's ten minutes if nothing goes wrong. If you review five PRs a day, you spend most of an hour waiting on your machine.&lt;/p&gt;

&lt;p&gt;So teams settle into a routine without ever deciding on it. Small PRs get approved on trust. Big ones get reviewed from the screenshots the author attached. Only the scary ones get pulled down and run.&lt;/p&gt;

&lt;p&gt;Screenshots have a built-in blind spot. The author captures the pages they thought of, and the page that breaks is almost always one they didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI made the gap wider
&lt;/h2&gt;

&lt;p&gt;This isn't new. It has just gotten more frequent.&lt;/p&gt;

&lt;p&gt;AI-generated UI changes are longer, touch more files, and every line looks reasonable, which is exactly why they're hard to review. Sometimes the author hasn't read every line either. Reviewers used to fill the gap with "I know how this person works." That works less often now. (I wrote about &lt;a href="https://blog.crossui.com/2026/09/vibe-coding-made-reading-expensive" rel="noopener noreferrer"&gt;the reading side of this&lt;/a&gt; a few weeks ago.)&lt;/p&gt;

&lt;h2&gt;
  
  
  What if looking cost nothing?
&lt;/h2&gt;

&lt;p&gt;Go back to the two questions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it looks like.&lt;/strong&gt; &lt;a href="https://studio.crossui.com" rel="noopener noreferrer"&gt;CrossUI Studio&lt;/a&gt; opens a PR's branch directly. You pick the repo, pick the branch (after a one-time connect), and you're done. There's no clone, no install, and no dev server. You get the rendered app, and in the preview you can move between pages, switch to dark mode, and open the parts you want a closer look at. (&lt;a href="https://blog.crossui.com/2026/08/no-install-no-dev-server-vibe-coding-era" rel="noopener noreferrer"&gt;Why no install is possible at all&lt;/a&gt;.)&lt;/p&gt;

&lt;p&gt;Your first question is probably: without a backend, what are you even rendering? Anything that needs the backend shows up empty, or as that component's own error message. Pages that need a login show you their logged-out version, with the layout and styles intact.&lt;/p&gt;

&lt;p&gt;That turns out to be enough. A UI PR changes layout, spacing, component states, and dark mode, and none of those depend on the backend. The part that comes up empty is also the part you couldn't have checked from the diff.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What else it touches.&lt;/strong&gt; On the PR's branch, open the dependency graph and click the component that got split. You'll see everything that depends on it, including imports that go through barrel files. The settings page is right there in the list. (&lt;a href="https://blog.crossui.com/2026/08/what-breaks-if-i-delete-this-file" rel="noopener noreferrer"&gt;More on the graph&lt;/a&gt;.)&lt;/p&gt;

&lt;p&gt;Reviewing a UI PR should cost about as much as reading its diff. Today it costs a dev server on top.&lt;/p&gt;

&lt;h2&gt;
  
  
  The limits
&lt;/h2&gt;

&lt;p&gt;Four things you should know before you try it.&lt;/p&gt;

&lt;p&gt;Connecting a repo takes a personal access token. There's no one-click authorization. With GitHub, the token stays in your browser and requests go straight to GitHub, without passing through our servers. There's also no "paste a PR link" field. You pick the repo, then the branch.&lt;/p&gt;

&lt;p&gt;Small repos open in seconds, but a few hundred files can take more than a minute. For a really big repo, clone it and open the local folder. And the dependency graph shows the branch as it is now. It doesn't compare two versions, so to see who depended on something before the change, switch back to main and look again.&lt;/p&gt;

&lt;h2&gt;
  
  
  One line for the checklist
&lt;/h2&gt;

&lt;p&gt;Most teams' PR template has a line for tests. UI PRs deserve one too: &lt;em&gt;I looked at what this renders.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That line only works if checking it is cheap enough that people actually do it.&lt;/p&gt;

&lt;p&gt;A backend change at least has tests and CI behind it. A UI change usually has nothing. For a UI change, the test is looking at it. People have always wanted to look. It just cost too much.&lt;/p&gt;

&lt;p&gt;Next time, take the branch you're reviewing right now, open it in Studio, and look before you approve. &lt;/p&gt;

</description>
      <category>react</category>
      <category>codereview</category>
      <category>development</category>
      <category>frontend</category>
    </item>
    <item>
      <title>Your sx prop is already a data structure, and almost no tool treats it that way</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 28 Sep 2026 12:00:00 +0000</pubDate>
      <link>https://dev.to/linb/your-sx-prop-is-already-a-data-structure-and-almost-no-tool-treats-it-that-way-229j</link>
      <guid>https://dev.to/linb/your-sx-prop-is-already-a-data-structure-and-almost-no-tool-treats-it-that-way-229j</guid>
      <description>&lt;p&gt;Last week I wrote about &lt;a href="https://blog.crossui.com/2026/09/shadcn-says-the-code-is-yours-so-why-cant-anything-edit-it" rel="noopener noreferrer"&gt;why shadcn is hard to edit visually&lt;/a&gt;, and somewhere in the middle I made a claim in passing: shadcn's styling is a string, MUI's &lt;code&gt;sx&lt;/code&gt; is data, and those two need different editors.&lt;/p&gt;

&lt;p&gt;A few people asked the obvious follow-up. Fine — what does the data side actually look like?&lt;/p&gt;

&lt;p&gt;This is that answer. It's less dramatic than the shadcn one, because nothing here was blocked on a rendering trick. It's more useful, though, because the interesting decisions are all about where to stop.&lt;/p&gt;

&lt;p&gt;Put the two side by side:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="nx"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;p-4 hover:bg-accent md:p-6&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;

&lt;span class="nx"&gt;sx&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{{&lt;/span&gt; &lt;span class="na"&gt;p&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;&amp;amp;:hover&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;bgcolor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;accent&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@media (min-width:900px)&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;p&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same design intent. The first is a token list that happens to have conventions baked into the token names. The second has actual shape: keys, nesting, values you can address by path.&lt;/p&gt;

&lt;p&gt;A string has to be parsed before you know what's in it. An object already knows. Which sounds like it makes the editor easy — and the tree part genuinely is easy. The hard parts moved somewhere else: deciding which keys deserve to be structure, and putting a change back in the file without touching anything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nesting is a tree, so the UI is a tree
&lt;/h2&gt;

&lt;p&gt;The rule for what becomes a branch is one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;&amp;amp;&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;:&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Hit → expandable branch, recurse. Miss → leaf, render a control.&lt;/p&gt;

&lt;p&gt;That's the whole thing, and it covers more than you'd expect. &lt;code&gt;&amp;amp;:hover&lt;/code&gt;, &lt;code&gt;@media (min-width:900px)&lt;/code&gt;, &lt;code&gt;&amp;amp; &amp;gt; *&lt;/code&gt;, &lt;code&gt;&amp;amp;::placeholder&lt;/code&gt;, &lt;code&gt;&amp;amp; .MuiButton-root&lt;/code&gt; — all of them become tree nodes for free, because CSS-in-JS conventions are prefix conventions.&lt;/p&gt;

&lt;p&gt;Seventeen of them ship with human labels: &lt;code&gt;&amp;amp;:hover&lt;/code&gt; → Hover, &lt;code&gt;@media (min-width:900px)&lt;/code&gt; → MD, &lt;code&gt;&amp;amp; &amp;gt; *&lt;/code&gt; → Direct Children. Anything not in that list still nests correctly, just without a friendly name. The rule is general; the labels are a courtesy.&lt;/p&gt;

&lt;p&gt;One decision in there is worth pulling out, because it's the kind of thing that only shows up once you've used the panel on real code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;isBranch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;isExpression&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;isResponsive&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;hasChildren&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;isSelector&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Expressions and responsive values win over selectors.&lt;/strong&gt; If a key looks structural but its value is one of those two, it stays a leaf.&lt;/p&gt;

&lt;p&gt;That isn't a house style. It's how MUI's own &lt;code&gt;sx&lt;/code&gt; processor dispatches. When it walks an &lt;code&gt;sx&lt;/code&gt; object and hits a nested object, it asks whether the keys are breakpoints before it treats the thing as a nested style block — roughly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;hasBreakpoint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="nf"&gt;resolveResponsive&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;recurseAsNestedStyles&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A breakpoint object is a &lt;em&gt;value spread across viewports&lt;/em&gt;. A selector object is a &lt;em&gt;scope containing more styles&lt;/em&gt;. They're written with identical syntax and mean entirely different things, so the styling engine has to disambiguate before it can do anything, and it disambiguates on the keys.&lt;/p&gt;

&lt;p&gt;The panel is drawing that same decision. &lt;code&gt;{ xs: 2, md: 3 }&lt;/code&gt; renders as one responsive control rather than a two-child subtree because that's what MUI is going to do with it. An expression stays whole for the same reason: MUI calls it with the theme and uses the result as a value, so the panel treats it as a value too.&lt;/p&gt;

&lt;p&gt;Which is also the practical answer. When someone writes a responsive object or drops in an arrow function, they're holding it in their head as one thing. Exploding it into a subtree turns a single decision into rows you have to keep in sync — and now the panel's model of the file disagrees with the framework's.&lt;/p&gt;

&lt;p&gt;Keep that in mind for the write-back section. The same instinct runs through it: touch as little as possible.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tree's edges have to follow the real semantics
&lt;/h2&gt;

&lt;p&gt;Breakpoints in the panel aren't hardcoded. They come from the same &lt;code&gt;VIEWPORTS&lt;/code&gt; config the canvas uses for device sizes — MUI's breakpoint keys, with a representative device width picked for each: xs 375, sm 600, md 900, lg 1200, xl 1536.&lt;/p&gt;

&lt;p&gt;(Those widths are canvas device widths, not breakpoint thresholds. sm through xl happen to line up with MUI's defaults; &lt;code&gt;xs&lt;/code&gt; doesn't, because MUI's &lt;code&gt;xs&lt;/code&gt; floor is 0 and you can't render a 0px canvas.)&lt;/p&gt;

&lt;p&gt;The nice consequence is that the breakpoint you click in the style panel and the device you switch to on the canvas are the same object. Not two lists that have to be kept in sync by whoever remembers.&lt;/p&gt;

&lt;p&gt;Promoting a value to responsive fills &lt;strong&gt;all five&lt;/strong&gt; breakpoints with the current value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;p&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;  &lt;span class="err"&gt;→&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;p&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;sm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;md&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;lg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;xl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Not &lt;code&gt;{ xs: 2, md: 3 }&lt;/code&gt;. You differentiate afterward, by hand, at whichever breakpoint you actually care about.&lt;/p&gt;

&lt;p&gt;I've been asked why it doesn't write a minimal object. Because the panel is showing you five rows, and three of them would be blank while still rendering something — MUI cascades responsive objects upward, so the value is real even when the key is absent. Blank rows that aren't blank in the output are a bad place to start editing from. Filling all five means promotion is a visual no-op: nothing changes on screen, you just gained five editable slots. Then you change one.&lt;/p&gt;

&lt;p&gt;And when you do change one, only that one gets written. Editing the &lt;code&gt;md&lt;/code&gt; slot produces a patch carrying &lt;code&gt;dirtyPath: ['md']&lt;/code&gt;, which becomes &lt;code&gt;['p', 'md']&lt;/code&gt; by the time it reaches the writer. The other four are never re-emitted. (That matters more than it sounds. It's the next section.)&lt;/p&gt;

&lt;p&gt;Here's the part I think is actually worth the post, and it took me a while to see why it wasn't a limitation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The same-looking value gets different treatment depending on which path it's written on.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Inside &lt;code&gt;sx={{ ... }}&lt;/code&gt;, any property can be promoted — including custom CSS keys you invented. &lt;code&gt;sx&lt;/code&gt; is MUI's own styling channel and it accepts breakpoint objects wherever a value goes. (On any component that processes &lt;code&gt;sx&lt;/code&gt;, which is every MUI component. A plain &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; doesn't have an &lt;code&gt;sx&lt;/code&gt; prop to begin with.)&lt;/p&gt;

&lt;p&gt;Written as a top-level system prop, it can't:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Box&lt;/span&gt; &lt;span class="na"&gt;p&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;md&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;          &lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="cm"&gt;/* fine */&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Typography&lt;/span&gt; &lt;span class="na"&gt;p&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;md&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;   &lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="cm"&gt;/* not a thing */&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Only &lt;code&gt;Box&lt;/code&gt;, &lt;code&gt;Stack&lt;/code&gt;, and &lt;code&gt;Grid&lt;/code&gt; support system props as top-level breakpoint objects. Typography's system props were deprecated in v6. So the panel offers promotion on those three and withholds it elsewhere — on the top-level path only.&lt;/p&gt;

&lt;p&gt;And under either path, a value that came from a spread can't be promoted at all, because there's nowhere unambiguous to write the result.&lt;/p&gt;

&lt;p&gt;That's three different answers for what looks, in the inspector, like the same number:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;where the value lives&lt;/th&gt;
&lt;th&gt;promotable?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;inside &lt;code&gt;sx={{ ... }}&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;any property, on any component that takes &lt;code&gt;sx&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;top-level system prop&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Box&lt;/code&gt; / &lt;code&gt;Stack&lt;/code&gt; / &lt;code&gt;Grid&lt;/code&gt; only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anything from a spread&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If the panel flattened those into one rule, one of two things goes wrong. Offer promotion everywhere and you get a control that produces code MUI ignores — the panel looks right, the render doesn't change, and you lose twenty minutes deciding whether you misunderstood breakpoints or found a bug. Withhold it everywhere outside &lt;code&gt;Box&lt;/code&gt;/&lt;code&gt;Stack&lt;/code&gt;/&lt;code&gt;Grid&lt;/code&gt; and you've disabled a feature that works fine, on the path where it works fine.&lt;/p&gt;

&lt;p&gt;So the panel's edges follow MUI's semantics rather than a single convenient fiction about them.&lt;/p&gt;

&lt;p&gt;That's the concrete version of the argument I was making last week. "Does this accept a breakpoint object here?" is knowledge about the styling system, it differs by path within the same component, and it's only actionable if the styles are data you can reason about. &lt;strong&gt;A tool that edits &lt;code&gt;className&lt;/code&gt; as a string has no way to know the difference, and no place to put the distinction even if it did.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The three-second version, if you want to check it: put &lt;code&gt;p={{ xs: 1 }}&lt;/code&gt; on a &lt;code&gt;Box&lt;/code&gt; and on a &lt;code&gt;Typography&lt;/code&gt;, then look at the same spacing value written inside &lt;code&gt;sx&lt;/code&gt; on both. Three of those four offer promotion. On a free account the affordance is a gold lock rather than the control — responsive promotion is a paid feature — but a lock and an absence are different states, and telling them apart is the whole exercise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing back: no reserialize
&lt;/h2&gt;

&lt;p&gt;Most people assume a visual editor works like this: read the file, parse to AST, mutate the AST, print it back out.&lt;/p&gt;

&lt;p&gt;That assumption has a well-known answer already — recast and ts-morph have preserved original formatting for unmodified nodes for over a decade. So this isn't a story about a tool that mangles your file versus one that doesn't. That problem is solved.&lt;/p&gt;

&lt;p&gt;The difference here is where the ranges live. &lt;strong&gt;The IR carries them.&lt;/strong&gt; Every value node knows its own start and end offset in the source, so an edit doesn't need a print-then-reconcile pass at all. An edit is a path plus a new value, and the path resolves to a byte range:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Every IR value node carries &lt;code&gt;range_v&lt;/code&gt; — where that value starts and ends in the source.&lt;/li&gt;
&lt;li&gt;An edit produces a &lt;code&gt;dirtyPath&lt;/code&gt; — &lt;code&gt;['p', 'md']&lt;/code&gt; — naming the one thing that changed.&lt;/li&gt;
&lt;li&gt;Write-back replaces that range. One splice.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Which means your formatting, your comments, your quote style, that arrow function three properties down, the blank line you put there on purpose:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;They aren't preserved. They're untouched.&lt;/strong&gt; We never had them in hand, so there's nothing to get wrong.&lt;/p&gt;

&lt;p&gt;There's a second thing worth mentioning here, because it surprised me when I traced it. The theme editor and the &lt;code&gt;sx&lt;/code&gt; editor are the same writer. Three commands form one cascade:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;updateJSObject  &amp;gt;  updateStyle  &amp;gt;  updateProp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;updateJSObject&lt;/code&gt; — the one the MUI theme editor emits — wraps itself in a synthetic &lt;code&gt;style&lt;/code&gt;, then rewrites its own command type and falls through to &lt;code&gt;updateStyle&lt;/code&gt;, which does the same thing again and falls through to &lt;code&gt;updateProp&lt;/code&gt;. Editing &lt;code&gt;createTheme()&lt;/code&gt;'s palette and editing an inline &lt;code&gt;sx&lt;/code&gt; value converge on the same byte-range splice by the time they hit the file.&lt;/p&gt;

&lt;p&gt;That 1310-line theme editor isn't a second implementation. It's a second entrance to one hallway.&lt;/p&gt;

&lt;h3&gt;
  
  
  The part that answers last month's post
&lt;/h3&gt;

&lt;p&gt;I ended the shadcn piece on a problem I didn't have an answer for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="nx"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;cn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;border-b&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;isActive&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;bg-red-500&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;buttonVariants&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;variant&lt;/span&gt; &lt;span class="p"&gt;}))}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set padding to 6 from a panel, and something has to decide which literal to edit. The base string? The conditional? The variant definition every other button on the page also uses? Sometimes there's no correct answer, only a policy.&lt;/p&gt;

&lt;p&gt;On the &lt;code&gt;sx&lt;/code&gt; side — &lt;strong&gt;when &lt;code&gt;sx&lt;/code&gt; is an inline object literal&lt;/strong&gt; — the question doesn't come up. Not because we solved it. Because objects have paths. &lt;code&gt;sx.p.md&lt;/code&gt; names exactly one span of bytes in exactly one file, and the panel doesn't have to choose anything.&lt;/p&gt;

&lt;p&gt;The qualifier is load-bearing, so let me be exact about it. Two shapes don't get that guarantee:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="nx"&gt;sx&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;sharedSx&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;            &lt;span class="c1"&gt;// the path isn't in this JSX attribute at all&lt;/span&gt;
&lt;span class="nx"&gt;sx&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{{&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;&lt;span class="nx"&gt;base&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;p&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="p"&gt;}}&lt;/span&gt;   &lt;span class="c1"&gt;// whatever base contributes lives somewhere else&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first is the same class of problem as the shadcn one, arrived at from the other direction. The second I'd rather not characterize than characterize wrong.&lt;/p&gt;

&lt;p&gt;But that's the real difference between the two sides, and it's narrower than "objects good, strings bad": &lt;strong&gt;an inline object literal gives you an addressable path; string concatenation never does, no matter how it's composed.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it refuses, and how
&lt;/h2&gt;

&lt;p&gt;Plenty of &lt;code&gt;sx&lt;/code&gt; values can't be turned into controls. That refusal happens when the panel reads, not when it writes.&lt;/p&gt;

&lt;p&gt;The IR has exactly three value shapes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;shape&lt;/th&gt;
&lt;th&gt;meaning&lt;/th&gt;
&lt;th&gt;UI&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;{ value }&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;a plain value&lt;/td&gt;
&lt;td&gt;visual control&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;{ code }&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;an expression, source text kept verbatim&lt;/td&gt;
&lt;td&gt;expression editor&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;{ object }&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;a branch&lt;/td&gt;
&lt;td&gt;recurse&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Plus &lt;code&gt;{ code, object }&lt;/code&gt; — source text &lt;em&gt;and&lt;/em&gt; parsed result, both retained.&lt;/p&gt;

&lt;p&gt;So &lt;code&gt;sx={{ p: theme =&amp;gt; theme.spacing(2) }}&lt;/code&gt; becomes &lt;code&gt;{ code: "theme =&amp;gt; theme.spacing(2)" }&lt;/code&gt;, stays a leaf, and gets a code editor instead of a slider. If the entire &lt;code&gt;sx&lt;/code&gt; prop is an expression the panel switches itself to advanced mode. Properties outside the Basic set say so in as many words: "This style is not available in Basic mode."&lt;/p&gt;

&lt;p&gt;None of that is silent degradation. The boundary is stated: here's a control, here's why there isn't one, here's your original text back. A structured editor that guesses wrong rewrites your source incorrectly. One that drops to text doesn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Being straight about the gaps
&lt;/h2&gt;

&lt;p&gt;Three, and the third is the one that bothers me.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Responsive promotion is a paid feature.&lt;/strong&gt; Free accounts get a gold lock and an upgrade prompt. I'd rather you learn that here than from the lock.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;On the top-level system-prop path it's &lt;code&gt;Box&lt;/code&gt;/&lt;code&gt;Stack&lt;/code&gt;/&lt;code&gt;Grid&lt;/code&gt; only&lt;/strong&gt; — explained above, and I think that's correct rather than partial, but it does mean the affordance is absent in places where a casual read would expect it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your custom theme tokens don't appear in the sx autocomplete.&lt;/strong&gt; The theme editor edits your project's real &lt;code&gt;createTheme()&lt;/code&gt;. The &lt;code&gt;sx&lt;/code&gt; suggestion list is a hardcoded table of MUI's default keys. &lt;code&gt;palette.primary.main&lt;/code&gt; is in it. &lt;code&gt;palette.brand.main&lt;/code&gt;, which you defined, is not.&lt;/p&gt;

&lt;p&gt;That last one should look familiar if you read the shadcn post. I wrote there that your &lt;code&gt;tailwind.config&lt;/code&gt; tokens are fed to the engine but never reach the inspector. This is the identical seam in a completely different styling system:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The rendering pipeline gets your project's configuration. The editing surface doesn't.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Two style systems with nothing in common, the same unconnected wire in both. That's not two oversights. That's one missing idea — project configuration isn't a first-class input to the panel yet — and finding it twice is how I know it's structural rather than a todo someone forgot.&lt;/p&gt;

&lt;h2&gt;
  
  
  The actual difference
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;sx&lt;/code&gt; can be a tree because MUI's styling happens to be a data structure. shadcn's happens to be a string. Neither is a design failure; they're different bets, and both are reasonable.&lt;/p&gt;

&lt;p&gt;But they hand a tool completely different jobs. One asks you to understand structure. The other asks you to render it correctly before you can understand anything at all.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Change a value inside a string, and you have to decide which part of the string to change.&lt;br&gt;
Change a value inside an object, and the path already told you.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Everything hard about visual editing lives on one side of that sentence or the other.&lt;/p&gt;

&lt;p&gt;If you work in MUI: &lt;a href="https://studio.crossui.com" rel="noopener noreferrer"&gt;Studio has a free tier&lt;/a&gt;. Open a template, find an &lt;code&gt;sx&lt;/code&gt; prop with a &lt;code&gt;&amp;amp;:hover&lt;/code&gt; in it, and tell me where the tree gets it wrong. The write-back path is the part I'd most like to hear about breaking.&lt;/p&gt;

</description>
      <category>mui</category>
      <category>react</category>
      <category>sx</category>
    </item>
    <item>
      <title>shadcn/ui says the code is yours. So why can't anything edit it?</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 21 Sep 2026 12:01:00 +0000</pubDate>
      <link>https://dev.to/linb/shadcnui-says-the-code-is-yours-so-why-cant-anything-edit-it-2dc7</link>
      <guid>https://dev.to/linb/shadcnui-says-the-code-is-yours-so-why-cant-anything-edit-it-2dc7</guid>
      <description>&lt;p&gt;&lt;em&gt;~9 min read&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;shadcn/ui's whole pitch is that it isn't a dependency. You run the CLI, the component lands in &lt;code&gt;components/ui/button.tsx&lt;/code&gt;, and it's yours. No package to upgrade, no wrapper to fight, no &lt;code&gt;!important&lt;/code&gt; war with someone else's stylesheet.&lt;/p&gt;

&lt;p&gt;Which raises a question nobody asks out loud: if the code is mine, why is hand-editing the only way to change it?&lt;/p&gt;

&lt;p&gt;Not a rhetorical complaint. There's a real technical answer, and it isn't the one you'd guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Visual editors assume a prop table. shadcn doesn't have one.
&lt;/h2&gt;

&lt;p&gt;Every visual React editor I've looked at makes the same bet: components arrive from a package, and that package has a documented, stable prop surface. MUI is the ideal case. &lt;code&gt;&amp;lt;Button variant="contained" size="large" color="primary"&amp;gt;&lt;/code&gt; — three enums with known values. A tool can read the type, render three dropdowns, write back a string. It works because the component is a black box with a labelled control panel bolted to the front.&lt;/p&gt;

&lt;p&gt;Now open a shadcn button.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;buttonVariants&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;cva&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;inline-flex items-center justify-center rounded-md text-sm font-medium ...&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;variant&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;bg-primary text-primary-foreground hover:bg-primary/90&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;destructive&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;bg-destructive text-destructive-foreground ...&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;outline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;border border-input bg-background hover:bg-accent ...&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;},&lt;/span&gt;
      &lt;span class="na"&gt;size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;h-10 px-4 py-2&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;sm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;h-9 px-3&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;lg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;h-11 px-8&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="na"&gt;defaultVariants&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;variant&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;default&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;default&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's no prop table. There's a variant map — written in your repo, in plain TypeScript, in a file you own.&lt;/p&gt;

&lt;p&gt;The standard read is that this is worse for tooling: no types to introspect from a package, no docs to scrape, everyone's copy drifts. And it's true that you can't point a package-shaped tool at it.&lt;/p&gt;

&lt;p&gt;I think the opposite conclusion is the right one. &lt;strong&gt;A CVA map is strictly more information than a prop table&lt;/strong&gt;, and it's information you already have on disk.&lt;/p&gt;

&lt;p&gt;A prop table tells you &lt;code&gt;variant&lt;/code&gt; accepts &lt;code&gt;"contained"&lt;/code&gt;. It does not tell you what &lt;code&gt;"contained"&lt;/code&gt; does. That's compiled into the library. To find out, you read the docs, or you guess, or you try it.&lt;/p&gt;

&lt;p&gt;The CVA map tells you &lt;code&gt;variant: "destructive"&lt;/code&gt; &lt;em&gt;is&lt;/em&gt; &lt;code&gt;bg-destructive text-destructive-foreground&lt;/code&gt;. The mapping is right there, as data, in source you control. Nothing is hidden, because nothing was ever packaged.&lt;/p&gt;

&lt;p&gt;So the argument is simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Structured visual editing needs to know what a control does, not just that it exists.&lt;br&gt;
With a package component, that knowledge lives in the library's compiled internals.&lt;br&gt;
With shadcn, it lives in your repo as a literal object.&lt;br&gt;
&lt;strong&gt;shadcn should be the easiest component library to edit visually, not the hardest.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Instead, the thing I can't find anywhere is structured variant editing driven by &lt;em&gt;your&lt;/em&gt; CVA map, in &lt;em&gt;your&lt;/em&gt; repo. Visual editors for Tailwind exist, and theme editors for shadcn exist — but a theme editor rewrites CSS variables, which is a different job: it changes what &lt;code&gt;bg-primary&lt;/code&gt; resolves to, not which variant a button is using or what that variant is made of. The obstacle to the second one turns out to sit a layer below variants.&lt;/p&gt;

&lt;h2&gt;
  
  
  The obstacle: shadcn's styling is class names, and class names need a build step
&lt;/h2&gt;

&lt;p&gt;MUI styles at runtime. &lt;code&gt;sx={{ p: 2 }}&lt;/code&gt; becomes CSS while the component renders — nothing precomputed, nothing to scan. MUI in a browser with no build step is plenty of work, but none of it is styling work: it's module resolution, keeping emotion and the theme as true singletons, and shipping a coherent set of package versions (we vendor eight MUI-related builds across three version tiers for exactly that reason). We &lt;a href="https://blog.crossui.com/2026/08/no-install-no-dev-server-vibe-coding-era" rel="noopener noreferrer"&gt;wrote about that side here&lt;/a&gt;. Once the modules resolve, the styles take care of themselves.&lt;/p&gt;

&lt;p&gt;Tailwind works the other way around. It scans your source files, sees which utility class names appear as text, and generates exactly those rules. No scan, no CSS. And "scanning source files" is a build step.&lt;/p&gt;

&lt;p&gt;So for a tool that renders a real project in the browser with no install and no dev server, shadcn presents a wall that MUI never did. You can compile &lt;code&gt;button.tsx&lt;/code&gt; perfectly and get an unstyled button. The class names are all present in the DOM and mean nothing, because nothing generated the rules.&lt;/p&gt;

&lt;p&gt;That's the actual reason visual tooling stops at the door. Not variants. Styling.&lt;/p&gt;

&lt;p&gt;There's a sharper version of the problem, too. Tailwind's scanner reads source text. But shadcn components don't have class names in source text — they have a function call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;button&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;cn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;buttonVariants&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;variant&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;size&lt;/span&gt; &lt;span class="p"&gt;}),&lt;/span&gt; &lt;span class="nx"&gt;className&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is no string &lt;code&gt;"bg-destructive"&lt;/code&gt; anywhere in that line. It's assembled at runtime from the CVA map, the incoming props, and whatever the caller passed.&lt;/p&gt;

&lt;p&gt;In a normal build this is handled, and handled well: the variant map file gets scanned too, the literals live there, and the extractor sees them. (Worth saying plainly, since it gets garbled a lot: Tailwind's rule is don't &lt;em&gt;construct&lt;/em&gt; class strings like &lt;code&gt;`text-${color}-500`&lt;/code&gt;. CVA variant maps hold complete literals. shadcn is the recommended pattern, not a workaround, and it needs no safelist.)&lt;/p&gt;

&lt;p&gt;In a browser with no build step, there is no scanning pass at all — so there is nothing to handle it. That's what makes this version of the problem sharper rather than the same problem again.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we did instead: collect classes from the DOM, not from the source
&lt;/h2&gt;

&lt;p&gt;The fix is to stop scanning source entirely.&lt;/p&gt;

&lt;p&gt;Studio runs Tailwind's real browser engine — the official one, not a reimplementation. The version is picked from what the project declares: v3 projects get Tailwind's Play CDN engine, vendored in the app rather than fetched from the CDN; v4 and up get &lt;code&gt;@tailwindcss/browser&lt;/code&gt;, likewise vendored. A remote fetch happens only when no vendored build matches the declared major — a v5 project, say. Your &lt;code&gt;tailwind.config&lt;/code&gt; is fed to the engine, so your theme extensions are the ones in effect.&lt;/p&gt;

&lt;p&gt;The obvious question here is why not run Tailwind's own extractor in the browser and scan the source after all. We measured what that costs: one render already issues somewhere between 40 and 340 file reads on the host side, and on a large template a single read runs 5–8 ms with no throughput gain from concurrency. Scanning the repo means reading every file instead of the ones that render. And after paying for it you still miss class names that come from runtime data. Collecting from the DOM isn't the lazy option — it trades "read the whole repo" for "read the result once."&lt;/p&gt;

&lt;p&gt;Running the engine gets you halfway. Then the interesting problem shows up.&lt;/p&gt;

&lt;p&gt;The engine is document-scoped and only observes light DOM — it calls &lt;code&gt;observe(document.documentElement)&lt;/code&gt; and never touches shadow roots. Studio's design mode renders the template inside a shadow root, for isolation. So the engine looks at the document, sees none of your component's class names, and generates nothing. Correct engine, correct config, zero output.&lt;/p&gt;

&lt;p&gt;What bridges it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;After render, walk the shadow DOM and collect every class token actually present on actual elements.&lt;/li&gt;
&lt;li&gt;Write those tokens into a hidden sink element in the light DOM, where the engine can see them.&lt;/li&gt;
&lt;li&gt;The engine generates rules for exactly the utilities in use.&lt;/li&gt;
&lt;li&gt;Adopt the resulting stylesheet back into the shadow root.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;MutationObserver&lt;/code&gt; on the shadow root — subtree, &lt;code&gt;attributeFilter: ['class']&lt;/code&gt; — catches everything that appears later: route changes, lazy content, anything conditional.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One detail worth flagging because it cost real time: the sink must be inserted with native &lt;code&gt;appendChild&lt;/code&gt;. The canvas patches &lt;code&gt;document.body.appendChild&lt;/code&gt; to redirect portal content into the shadow root, and going through the patched version buries the sink inside the shadow root — where the engine can't see it. The bridge then fails silently, which is the worst kind.&lt;/p&gt;

&lt;p&gt;The sink is a real node in the light DOM, and it keeps filling as you use the app — switch routes and the classes the new page needs show up in it, without a reload.&lt;/p&gt;

&lt;p&gt;There's a second gotcha like the first one. It's not a shadcn thing — it comes from other templates we render — but it's the same failure shape. Tailwind v3 templates built on Next often set &lt;code&gt;important: '#__next'&lt;/code&gt; in their config, scoping every utility under the app's root ID. That ID doesn't exist in the canvas, so every utility silently fails to match. The config's selector gets redirected to the live render root — and the replacement has to also be an ID selector, because the &lt;code&gt;(1,0,0)&lt;/code&gt; specificity is doing load-bearing work against the template's own CSS.&lt;/p&gt;

&lt;p&gt;The payoff for doing it this way:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Because collection happens from the DOM instead of the source, any class name assembled at runtime works.&lt;/strong&gt; &lt;code&gt;cn()&lt;/code&gt;, &lt;code&gt;clsx&lt;/code&gt;, &lt;code&gt;twMerge&lt;/code&gt;, CVA, a ternary, a lookup table, a class name built from a prop by string concatenation — the engine never has to understand any of it. By the time collection runs, the composition already happened and the result is sitting in a &lt;code&gt;class&lt;/code&gt; attribute. shadcn-admin renders correctly not because we special-cased shadcn, but because this approach is indifferent to how the string got there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The honest limit:&lt;/strong&gt; only classes that have actually rendered get generated. A real Tailwind build scans source, so it emits both branches of &lt;code&gt;cond ? 'bg-red-500' : 'bg-blue-500'&lt;/code&gt; even though only one can be on screen. Here the untaken branch has no CSS until it renders. The &lt;code&gt;MutationObserver&lt;/code&gt; fills it in when state flips — but that means &lt;strong&gt;the frame where it flips can be unstyled&lt;/strong&gt;. In practice you see it as a brief flash on the first toggle of a variant you haven't hit yet.&lt;/p&gt;

&lt;p&gt;It cuts the other way too, which is why I'd call it a tradeoff and not a deficit. Take &lt;code&gt;statusColors[res.status]&lt;/code&gt;, where the key arrives from an API response. No complete utility literal exists anywhere in the source, so a scanning build generates nothing for it — this is the case safelists exist to paper over. DOM collection doesn't distinguish it from anything else; by the time we look, the class is on the element. Source scanning gets you branches that haven't run. DOM collection gets you class names that were never written down. You pick which one you'd rather have, and in a browser the choice is mostly made for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this leaves the argument
&lt;/h2&gt;

&lt;p&gt;So: shadcn-admin renders. A template built entirely on class names, CVA variants, and &lt;code&gt;cn()&lt;/code&gt; composition, running with no install and no dev server, with the real Tailwind engine and your real config.&lt;/p&gt;

&lt;p&gt;Which is worth something specific, and it isn't "visual editing."&lt;/p&gt;

&lt;p&gt;Think about the last time you opened an unfamiliar admin template to decide whether to use it. You cloned it, installed it, waited, ran it, clicked around for four minutes, and closed it. Most of that time was the machine's, not yours. Now think about the last time you wanted to show a teammate what a component looked like in three states, or check whether a template's dark mode was actually finished, or figure out where a card's spacing came from before quoting a change. Same tax, every time, for a question that takes seconds to answer once something is on screen.&lt;/p&gt;

&lt;p&gt;That tax is the thing that's gone. A shadcn project renders in seconds with its real classes, and then everything Studio does that isn't styling-specific works on it: &lt;a href="https://blog.crossui.com/2026/08/two-way-is-not-the-same-as-symmetric" rel="noopener noreferrer"&gt;selection that goes both ways between code and canvas&lt;/a&gt;, &lt;a href="https://blog.crossui.com/2026/08/drill-down-all-the-way" rel="noopener noreferrer"&gt;drilling into a component defined five files away&lt;/a&gt;, &lt;a href="https://blog.crossui.com/2026/08/what-breaks-if-i-delete-this-file" rel="noopener noreferrer"&gt;seeing what breaks if you delete a file&lt;/a&gt;. Those operate on your code, not your styles, so they never cared which styling system you picked. They just needed the thing to render first.&lt;/p&gt;

&lt;p&gt;What's still missing is the styling side of the inspector: &lt;code&gt;className&lt;/code&gt; is edited as a string like any other prop, nothing reads your CVA map to build variant controls, and your &lt;code&gt;tailwind.config&lt;/code&gt; tokens reach the engine but not the panel. The MUI side has a theme editor and a structured &lt;code&gt;sx&lt;/code&gt; tree; the Tailwind side has none of that yet. I'd rather say so than let a demo imply otherwise.&lt;/p&gt;

&lt;p&gt;But that ordering is the actual point, and it isn't obvious from outside:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;shadcn's styling is class names, not props.&lt;br&gt;
So correctly rendering runtime-composed class names is the &lt;strong&gt;prerequisite&lt;/strong&gt; for editing them in any structured way.&lt;br&gt;
That prerequisite is genuinely hard in a browser, because the engine only sees light DOM and design-mode rendering happens in a shadow root.&lt;br&gt;
The class bridge solves it by collecting from the DOM rather than the source.&lt;br&gt;
&lt;strong&gt;The prerequisite is now in place.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What sits on top of it is a smaller problem than what's underneath, but not a trivial one, and I don't want to wave at it. A CVA map is a literal object in a file you own; reading it and rendering a variant selector is ordinary work. Writing the change back is not. A class name can arrive from three composition sites at once:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="nx"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;cn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;border-b&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;isActive&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;bg-red-500&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;buttonVariants&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;variant&lt;/span&gt; &lt;span class="p"&gt;}))}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set padding to 6 in a panel, and something has to decide which literal to edit — the base string, the conditional, or the variant definition that every other button on the page also uses. Sometimes there's no correct answer, only a policy. That's the next real problem, and it's hard in a different way than this one was.&lt;/p&gt;

&lt;p&gt;If you'd asked me before starting which half would be hard, I'd have guessed wrong.&lt;/p&gt;

&lt;p&gt;If you work in shadcn and have opinions about what that control surface should look like — variant dropdowns driven by the CVA map, spacing controls that rewrite utilities rather than inline styles, a rule for which literal a write-back should land in — that's a conversation I'd like to have before building it rather than after. &lt;a href="https://studio.crossui.com" rel="noopener noreferrer"&gt;Studio has a free tier&lt;/a&gt;; point it at a shadcn project and tell me where it's wrong.&lt;/p&gt;

</description>
      <category>react</category>
      <category>shadcn</category>
      <category>tailwindcss</category>
      <category>cva</category>
    </item>
    <item>
      <title>Every React instructor has drawn this box diagram. Let's go further</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 14 Sep 2026 12:01:00 +0000</pubDate>
      <link>https://dev.to/linb/every-react-instructor-has-drawn-this-box-diagram-lets-go-further-3ch6</link>
      <guid>https://dev.to/linb/every-react-instructor-has-drawn-this-box-diagram-lets-go-further-3ch6</guid>
      <description>&lt;p&gt;You finish teaching props. You drew the box diagram, you gave examples. And they got it — you ask a question in class, they answer it fine.&lt;/p&gt;

&lt;p&gt;Next week, in the homework, the same student asks: "how do I know where this total comes from?"&lt;/p&gt;

&lt;p&gt;He didn't forget what you said. He knows what props are. He just can't call on it inside real code.&lt;/p&gt;

&lt;p&gt;The box diagram got him to "I understand." It doesn't reach "I can use it." That part was never in range of an explanation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The thing I want to say first
&lt;/h2&gt;

&lt;p&gt;Your teaching is fine. They really do understand.&lt;/p&gt;

&lt;p&gt;The problem is the next step. &lt;strong&gt;There's a distance between understanding and using, and that distance doesn't close with a better explanation.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;props, context, &lt;code&gt;.map()&lt;/code&gt;, conditional rendering, module structure — these are relational, not factual. "useState returns an array" is a fact. Say it once, done. "This line of JSX corresponds to that thing on screen" is a mapping. Mappings only get built by matching them up, over and over.&lt;/p&gt;

&lt;p&gt;You can explain a mapping beautifully. They'll understand it. But understanding a mapping and being able to call on it instantly are two different things.&lt;/p&gt;

&lt;p&gt;This isn't about teaching skill. Explanation has a ceiling, and the ceiling is at "understand." Getting past it takes reps from the student — and whether they get reps depends on whether they have something they can poke at.&lt;/p&gt;

&lt;p&gt;So: four places this shows up every term. In all four, the students understood you. They still got stuck.&lt;/p&gt;

&lt;h2&gt;
  
  
  One: your first class gets eaten by environment setup
&lt;/h2&gt;

&lt;p&gt;Thirty people. The lesson plan says "get a React project running."&lt;/p&gt;

&lt;p&gt;What actually happens: five have the wrong node version. Three hit npm permission errors on Windows. Two are behind a corporate network that won't install packages. One installed nvm into the wrong shell config. You spend forty minutes doing tech support and the last twenty rushing through half your material.&lt;/p&gt;

&lt;p&gt;What it actually costs you:&lt;/p&gt;

&lt;p&gt;Your class time goes to something that has nothing to do with React. And you pay it again with every new cohort.&lt;/p&gt;

&lt;p&gt;You end up maintaining a setup guide doc. Every time node, npm, or vite moves, you update it. Unpaid, forever.&lt;/p&gt;

&lt;p&gt;You can't assign "go run this at home," because half the class gets stuck and then your weekend is answering setup questions.&lt;/p&gt;

&lt;p&gt;And the quiet one: &lt;strong&gt;you filtered people out in week one, on a criterion that has nothing to do with React.&lt;/strong&gt; The ones who dropped weren't bad at React. They just couldn't get an environment running yet. But they'll read that failure as "I'm not cut out for this."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What changes it:&lt;/strong&gt; opening a real project costs about as much as opening a webpage. No install, no dev server — the compile happens in the browser, so there's nothing on their machine to go wrong. Which means the goal of your first class can actually be "read the structure of a real project" instead of "get thirty laptops to agree with each other." (&lt;a href="https://blog.crossui.com/2026/08/no-install-no-dev-server-vibe-coding-era" rel="noopener noreferrer"&gt;how that works&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Someone always asks: so they never learn to set up an environment? They do. But setup is a standalone skill you can teach in week five, on purpose, with your attention on it. Putting it in week one as a gate is just a sequencing mistake.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two: they understood props. They still can't use props.
&lt;/h2&gt;

&lt;p&gt;A student can read &lt;code&gt;&amp;lt;AnalyticsWidgetSummary total={714000} color="warning" /&amp;gt;&lt;/code&gt; and tell you what every part does. He can define props correctly.&lt;/p&gt;

&lt;p&gt;Ask him what happens if you change &lt;code&gt;total&lt;/code&gt; — he pauses. Ask where &lt;code&gt;color="warning"&lt;/code&gt; is actually defined — he has no direction.&lt;/p&gt;

&lt;p&gt;He's not confused about props. The mapping just isn't reflexive yet.&lt;/p&gt;

&lt;p&gt;Here's why explanation tops out here, and I think this is the real point of this whole post:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A diagram is you doing the mapping for them.&lt;/strong&gt; They see the result, they understand that it holds, but they never walked it themselves.&lt;/p&gt;

&lt;p&gt;It's the gap between reading a translation and being able to translate. Passive understanding and active recall run on different tracks. The first doesn't automatically become the second.&lt;/p&gt;

&lt;p&gt;And there's a counterintuitive bit: &lt;strong&gt;the clearer you explain it, the easier it is for them to stop at "I get it"&lt;/strong&gt; — because the quality of your explanation saved them from having to build the mapping themselves.&lt;/p&gt;

&lt;p&gt;So investing more in making the explanation better returns less and less. Not because the method is wrong. Because that road ends there.&lt;/p&gt;

&lt;p&gt;Which is why you keep building fancier analogies for the same concept and the results don't scale with the effort. Your part is done. The missing part isn't on your side.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What changes it:&lt;/strong&gt; click code, the canvas highlights. Click the canvas, the code highlights — the exact JSX node, not the general area. That's not impressive technology; it's that it turns one thing you said into forty things they did. (&lt;a href="https://blog.crossui.com/2026/08/two-way-is-not-the-same-as-symmetric" rel="noopener noreferrer"&gt;the mechanics of that&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Something you can use next week:&lt;/strong&gt; before you define props abstractly, have them do twenty clicks. Let them notice on their own that this text corresponds to that pixel. Give the concept its name after the operation, not as setup for it.&lt;/p&gt;

&lt;p&gt;And the obvious objection: won't they get dependent on the tool and never learn to find files? Depends on whether the tool shows the path. If it silently navigates for them and they never look, sure, that's a crutch. If it shows the component chain it walked and which file each layer lives in, then they're seeing real structure over and over until it stops being mysterious. That's training wheels.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three: three concepts, three lessons, everyone half-gets each one
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;.map()&lt;/code&gt;.&lt;/strong&gt; Student asks how to change the third card. You say you're changing the template, not the third card. He understands the sentence. But his eyes see five separate cards. Accepted intellectually, not built as intuition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conditional rendering.&lt;/strong&gt; He writes &lt;code&gt;isVip ? A : B&lt;/code&gt;, then spends twenty minutes debugging branch B. His test data always goes down A. He's debugging code that isn't running, and he doesn't know it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HOCs.&lt;/strong&gt; He sees &lt;code&gt;withAuth(withTheme(Card))&lt;/code&gt; and asks what the component is. There's no single answer — it depends which layer you mean. You can say that clearly. You can't make him walk each layer himself on a whiteboard.&lt;/p&gt;

&lt;p&gt;Here's the useful part: &lt;strong&gt;those three look like three different teaching problems. They're one.&lt;/strong&gt; What's missing isn't three pieces of knowledge. It's one piece of meta-knowledge — the rendered result and the source structure aren't one-to-one, and I need to know which layer I'm looking at.&lt;/p&gt;

&lt;p&gt;What it costs you: you treated them as three topics, built three explanations, spent three lessons. All three explanations were correct. They all understood. But the conversion to "can use it" was low on all three, because the missing piece was the same operation, not three explanations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What changes it:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.map()&lt;/code&gt;: click the second card, the code selects the map expression — because there genuinely is no "second card" in the source — then drill one step further into the template inside it. They watch five things come from one line. Reverse it: cursor on the map expression, all five cards light up at once.&lt;/p&gt;

&lt;p&gt;Conditional rendering: put the cursor on the branch that isn't currently rendering, and the canvas renders that branch on its own. No state changes, no fake test data. That student debugging for twenty minutes figures out what he's doing in two seconds.&lt;/p&gt;

&lt;p&gt;HOCs: climb the layers one at a time, definite answer at each. "What is this component" becomes a question you can answer layer by layer. (&lt;a href="https://blog.crossui.com/2026/09/drill-down-all-the-way" rel="noopener noreferrer"&gt;more on how the layers are defined&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Something you can use next week:&lt;/strong&gt; collapse three lessons into one, called "layers." Let them drill up and down first, bump into the concept themselves, then name it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four: they don't know what to be careful with
&lt;/h2&gt;

&lt;p&gt;Students go one of two ways. Either they won't touch anything (afraid of breaking it), or they'll touch anything (no idea what it's connected to). Both make homework hard to grade — one turns in nothing, the other turns in collateral damage.&lt;/p&gt;

&lt;p&gt;Why explanation can't quite reach this: importance isn't a static property. It's a relationship — how many things depend on this. You can accurately say "some files are more critical," and they'll agree, and it won't help them when they open an unfamiliar repo. They need a specific answer about a specific file.&lt;/p&gt;

&lt;p&gt;What they actually need isn't being told a file is important. It's seeing eleven references light up when they change one file. Specific, countable, located. That's when importance stops being an adjective.&lt;/p&gt;

&lt;p&gt;And here's the part I'd care most about if I were teaching: &lt;strong&gt;this instinct decides whether your students can handle an unfamiliar codebase after graduation.&lt;/strong&gt; The confusion in someone's first two weeks is almost never "I don't know React." It's "I don't know where anything lives in this repo." Someone who can trace an import chain and check inbound references can onboard anywhere. Someone who only knows hooks can onboard onto the one repo they were taught on. Which of those you're producing decides how rough their first job is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What changes it:&lt;/strong&gt; inbound edges give that signal a shape you can point at, and they can practice it on file after file — including the references that arrive through a barrel, which a plain editor search doesn't catch. There's an even better classroom move: &lt;strong&gt;break an edge on purpose.&lt;/strong&gt; Rename an export, watch which part of the graph goes red. Targeted breakage teaches faster than a correct example. (&lt;a href="https://blog.crossui.com/2026/09/what-breaks-if-i-delete-this-file" rel="noopener noreferrer"&gt;what building that graph involves&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Worth mentioning: one of the most stubborn beginner misconceptions is that an import path tells you where the code lives. Jump through three barrels in one hop to the real definition and that misconception dies immediately.&lt;/p&gt;

&lt;h2&gt;
  
  
  One rule you can run your syllabus through
&lt;/h2&gt;

&lt;p&gt;The four pains look unrelated — a psychological gate, a visual mapping, structural layers, relational reasoning. Underneath they're the same thing:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If a concept is fundamentally a relationship or a mapping, explanation gets them to "I understand." The rest of the way to "I can use it" only happens by doing it ten times themselves.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, a test you can apply to your own outline:&lt;/p&gt;

&lt;p&gt;Can students use this correctly right after understanding it? Yes → factual. Explanation is the whole solution.&lt;/p&gt;

&lt;p&gt;Or do they still need a few tries to get comfortable? → relational. Your explanation already did its job. What's missing is somewhere for them to try.&lt;/p&gt;

&lt;p&gt;Most of the hard parts of React are the second kind. Which is why a genuinely good instructor still ends up feeling like students "know it but can't quite use it." That stretch was never in range.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four things you could change next week
&lt;/h2&gt;

&lt;p&gt;Make the goal of class one "open a real project without being scared of it." Move environment setup to week five and teach it properly.&lt;/p&gt;

&lt;p&gt;Before defining props, twenty clicks. Name the concept after.&lt;/p&gt;

&lt;p&gt;Merge &lt;code&gt;.map()&lt;/code&gt;, conditional rendering, and HOCs into one lesson called layers. Operate first, name second.&lt;/p&gt;

&lt;p&gt;Before teaching context, have them delete a provider in a real project and see what breaks and where. Then explain why it's needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Not replacing your explanation. Adding the part after it.
&lt;/h2&gt;

&lt;p&gt;If you've taught React for a few years and students land in the same four spots every time — understood it, can't quite use it — that isn't a quality problem with your teaching. The box diagram did its job. It got them to "I understand."&lt;/p&gt;

&lt;p&gt;The rest of that distance doesn't need a better diagram. It needs the student to have something they can try ten times themselves.&lt;/p&gt;

&lt;p&gt;The four things above — opening a real project with no setup, clicking between code and canvas, drilling through layers, seeing what depends on what — are all things we built into &lt;a href="https://studio.crossui.com" rel="noopener noreferrer"&gt;CrossUI Studio&lt;/a&gt;, mostly for other reasons. Each one links out to its own writeup above if you want the details. Free for classroom use; if you're teaching a cohort and want it set up, get in touch.&lt;/p&gt;

</description>
      <category>react</category>
      <category>bootstrap</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Vibe coding made writing cheap. It made reading expensive.</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 07 Sep 2026 13:20:52 +0000</pubDate>
      <link>https://dev.to/linb/vibe-coding-made-writing-cheap-it-made-reading-expensive-5bc9</link>
      <guid>https://dev.to/linb/vibe-coding-made-writing-cheap-it-made-reading-expensive-5bc9</guid>
      <description>&lt;p&gt;A junior I know shipped a change last month. Cursor wrote it. He ran it. Looked fine. Opened the PR.&lt;/p&gt;

&lt;p&gt;Senior sent it back in five minutes: "this touches three things we don't have tests for."&lt;/p&gt;

&lt;p&gt;He had nothing to say. He didn't write the code. It looked right. He genuinely didn't know what he'd missed — or where you'd even start looking.&lt;/p&gt;

&lt;p&gt;He's not dumb. Nobody ever showed him what sits between "looks right" and "I checked."&lt;/p&gt;

&lt;h2&gt;
  
  
  The myth first
&lt;/h2&gt;

&lt;p&gt;People keep saying AI made writing code free.&lt;/p&gt;

&lt;p&gt;It didn't. Tokens cost real money. Run agents in a loop on a decent-sized repo for a week and go look at your bill. Nobody who's done that thinks generation is free.&lt;/p&gt;

&lt;p&gt;What AI actually did is narrower than the hype. It made &lt;em&gt;producing a plausible diff&lt;/em&gt; fast. It did exactly nothing for the hard part — knowing whether that diff is safe.&lt;/p&gt;

&lt;p&gt;So the cost didn't vanish. It moved. Writing got cheaper. Reading got brutal, because now there's ten times more of it and none of it is yours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nobody teaches reading
&lt;/h2&gt;

&lt;p&gt;Think about how we train people. Syntax. Hooks. Build a project. All production.&lt;/p&gt;

&lt;p&gt;Then they get a job where most of the day is reviewing changes they didn't write, and we act surprised when they can't.&lt;/p&gt;

&lt;p&gt;Most people file "can spot a bad change" under experience. Years of it. Can't teach it, you just earn it.&lt;/p&gt;

&lt;p&gt;I don't buy that. I've watched enough seniors do it to see it's not magic. It's four moves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Locate.&lt;/strong&gt; Which element on screen does this actually affect? Not roughly. Exactly which JSX node.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trace.&lt;/strong&gt; Is this a shared definition, or one call site? Shared means everything using it. Call site means just here. This one question decides whether the next move matters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blast radius.&lt;/strong&gt; If shared — who uses it? How many? Any references hiding behind a barrel or an &lt;code&gt;export *&lt;/code&gt;, where your editor's search just doesn't look?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run it.&lt;/strong&gt; Does it render what you expected? Including the branch that isn't on screen — the other half of that ternary.&lt;/p&gt;

&lt;p&gt;Four moves. All teachable. None taught.&lt;/p&gt;

&lt;h2&gt;
  
  
  "We have tools for this"
&lt;/h2&gt;

&lt;p&gt;Do we? Let's check.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TypeScript&lt;/strong&gt; catches type mismatches. But AI's signature move is code that types perfectly and sits in exactly the wrong place. Add a legal optional prop to a shared component. All green. Three of five call sites now render a UI element that shouldn't be there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unit tests&lt;/strong&gt; only cover what someone already thought about. The danger with an AI change is that it landed on a call site nobody thought about. Which almost certainly has no coverage — that's the state of UI testing everywhere, not one lazy team.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Storybook, visual regression.&lt;/strong&gt; These tell you something changed. Never why. Alarms after the fact, and only for components someone bothered to write a story for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And then the diff view.&lt;/strong&gt; This is the real problem, and it hides in plain sight.&lt;/p&gt;

&lt;p&gt;A diff shows you text. It shows you nothing about position or reach. Three lines feels safe. Three hundred feels scary. And that feeling has zero connection to what either one actually breaks.&lt;/p&gt;

&lt;p&gt;Sit with that for a second, because it's the whole thing:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Diff size and blast radius are unrelated. Human alarm scales with diff size anyway.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A three-line change can hit eleven files. A three-hundred-line refactor can be perfectly contained. Your gut has it backwards, and vibe coding means you now get to be wrong about this several times a day.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Fine, better models will fix it"
&lt;/h2&gt;

&lt;p&gt;Probably not. And not for the reason people assume.&lt;/p&gt;

&lt;p&gt;The model sees a window. A few open files, some conversation. From inside that window everything looks isolated. Almost nothing in a real repo is isolated.&lt;/p&gt;

&lt;p&gt;Look at what AI actually gets wrong. Same three patterns, forever:&lt;/p&gt;

&lt;p&gt;Thinks it's editing one instance. Actually editing the shared definition. Five other places quietly change.&lt;/p&gt;

&lt;p&gt;Imports through a path that isn't what it thought, because two barrels sat in between.&lt;/p&gt;

&lt;p&gt;Edits a branch that your case doesn't even go through, so the change never renders at all.&lt;/p&gt;

&lt;p&gt;None of those are syntax problems. They're all &lt;em&gt;where does this line sit in the system&lt;/em&gt; problems. Position. And position is not something a language model has good intuition for. A bigger context window is not a map.&lt;/p&gt;

&lt;p&gt;Someone always replies: so give the model the graph. Fair, and we do. It helps.&lt;/p&gt;

&lt;p&gt;But two things survive. First, shipping a change is a responsibility question, not an information question — when the AI says "safe," someone still has to be able to check that, or you're trusting a system that bears no consequences. Second, the map has to exist before you can hand it to anyone. Build it first. Then argue about who reads it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why good engineers skip the checks anyway
&lt;/h2&gt;

&lt;p&gt;Here's the part that took me a while to see.&lt;/p&gt;

&lt;p&gt;The four moves aren't hard to understand. Everyone nods along. And then they don't do them.&lt;/p&gt;

&lt;p&gt;Not laziness. Cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Locating&lt;/strong&gt; means eyeballing a wall of JSX hunting for which part of the UI this touches. Inside a &lt;code&gt;.map()&lt;/code&gt;, inside a conditional, in a component from another file — that hunt is half your review.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blast radius&lt;/strong&gt; means three greps, two of which return false hits from a string match, and none of which catch the reference coming in through a re-export.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Running it&lt;/strong&gt; means switching to a terminal, maybe installing whatever the AI just pulled in, waiting for a build, waiting for a dev server. Two or three minutes to verify a two-second change. So people read it, decide it looks fine, and ship. That's not a discipline failure. That's an entirely rational response to an absurd ratio.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer awareness&lt;/strong&gt; means rebuilding a component's whole structure in your head. At 6pm. On the fourth PR of the day.&lt;/p&gt;

&lt;p&gt;Which is why a better PR template doesn't fix this. A template tells people what to check. It does nothing about what checking costs — or whether the answer you get back is even right.&lt;/p&gt;

&lt;h2&gt;
  
  
  So we made the checks cheap
&lt;/h2&gt;

&lt;p&gt;But cost was only half of it. The other half is worse.&lt;/p&gt;

&lt;p&gt;Even if you're willing to spend the half hour, some of these questions your tools cannot answer correctly.&lt;/p&gt;

&lt;p&gt;Run a Find All References on a component in a real template. It returns what it indexed. It does not return the reference that arrived through an &lt;code&gt;export *&lt;/code&gt; in a barrel file — there's no textual match to find, and the indexer didn't resolve the chain. You get a list. The list looks complete. It isn't, and nothing tells you that.&lt;/p&gt;

&lt;p&gt;So when someone does the diligent thing — greps it, checks the callers, decides it's contained — they can be diligent and wrong at the same time. That's the failure mode that actually bothers me, more than the people who skip the check entirely. At least skipping feels like skipping.&lt;/p&gt;

&lt;p&gt;That's the reason CrossUI Studio exists. Not to run the same checks faster. To make a couple of them answerable at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Locate is one click.&lt;/strong&gt; Click the thing on screen, land on the exact JSX node that drew it — through the &lt;code&gt;.map()&lt;/code&gt;, through the conditional, through a component defined in a different file. Works backwards too: cursor on a line, and everything it draws lights up on the canvas. Put the cursor inside a &lt;code&gt;.map()&lt;/code&gt; and watch eight cards light up at once. That's the whole "one line, many elements" idea, no explanation needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trace is shown, not reconstructed.&lt;/strong&gt; Click again and you climb: this expression, then the component call, then the call site that passed the props, then the file the component actually lives in. "Shared definition or one call site" stops being a thing you work out in your head. It's just on screen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blast radius is a resolved graph, not a text search.&lt;/strong&gt; We resolve imports the way a bundler would — through barrels, through path aliases, through &lt;code&gt;export *&lt;/code&gt;. So "who imports this" returns the references a string search structurally can't reach. Fast is a side effect. Complete is the point.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Running it is instant.&lt;/strong&gt; No install, no bundler, no dev server. Open a real repo, it renders in the browser. And that branch that isn't on screen? Put your cursor on it and we render it for you. No faking state, no editing test data to see what a VIP sees.&lt;/p&gt;

&lt;p&gt;Two of those make a slow check fast. Two of them make a question answerable that wasn't. The second kind is the part I'd care about if I were choosing a tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  What that looks like in practice
&lt;/h2&gt;

&lt;p&gt;You ask AI for a discount badge on the product card. It adds a conditional inside &lt;code&gt;&amp;lt;ProductCard&amp;gt;&lt;/code&gt;. Clean diff. Runs. No errors.&lt;/p&gt;

&lt;p&gt;Click the badge. You land inside a &lt;code&gt;.map()&lt;/code&gt; — so this isn't one card, it's every card in the list.&lt;/p&gt;

&lt;p&gt;Climb up one layer. &lt;code&gt;&amp;lt;ProductCard&amp;gt;&lt;/code&gt; is a shared definition. This page doesn't own it.&lt;/p&gt;

&lt;p&gt;Check who imports it. Three places: cart, favorites, search results. Search results has no discount field at all.&lt;/p&gt;

&lt;p&gt;Open search results, cursor on the new branch, render it. There it is. Empty badge, alignment broken.&lt;/p&gt;

&lt;p&gt;Under a minute. No build. Without those four moves that diff merges clean and you hear about it from a user.&lt;/p&gt;

&lt;h2&gt;
  
  
  The team version of this problem
&lt;/h2&gt;

&lt;p&gt;One more thing, because individual judgment isn't a process.&lt;/p&gt;

&lt;p&gt;When half your team runs these checks and half doesn't, whether a bad PR gets caught depends on who got assigned. That's worse than a uniformly weak team, because it looks like something is working.&lt;/p&gt;

&lt;p&gt;And it caps how hard you can lean on AI. Without this, you've got two options: throttle AI usage, or accept an incident rate you can't predict. Neither is a strategy.&lt;/p&gt;

&lt;h2&gt;
  
  
  The uncomfortable version for anyone teaching this
&lt;/h2&gt;

&lt;p&gt;Same problem, one step earlier.&lt;/p&gt;

&lt;p&gt;If a junior's day is mostly reviewing code they didn't write, then "hand-write a TodoList" is training the wrong muscle.&lt;/p&gt;

&lt;p&gt;Better assignment: here's an AI-generated diff. It runs fine. Something in it is wrong. Find the real blast radius and show your work.&lt;/p&gt;

&lt;p&gt;Build the material from the failure patterns above — bait diffs, tiny in lines, huge in reach. Train people out of trusting line count.&lt;/p&gt;

&lt;p&gt;Not saying skip learning to write code. Someone who's never hand-written a &lt;code&gt;.map()&lt;/code&gt; or been burned by conditional rendering can't judge either. Writing is the floor judgment stands on. It just isn't the whole building. (More on the teaching side in a separate post.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this leaves us
&lt;/h2&gt;

&lt;p&gt;The bottleneck moved. Writing is cheap now. Reading is expensive — and part of it isn't just expensive, it's guesswork wearing the clothes of diligence.&lt;/p&gt;

&lt;p&gt;That's the piece I'd want closed before leaning harder on AI. Not because review takes too long. Because "I checked" should mean something.&lt;/p&gt;

&lt;p&gt;If you want to try the four moves on something real: &lt;a href="https://studio.crossui.com" rel="noopener noreferrer"&gt;CrossUI Studio&lt;/a&gt; opens an actual React repo in the browser, no install. Click something and see how far down it goes.&lt;/p&gt;

</description>
      <category>react</category>
      <category>ai</category>
      <category>vibecoding</category>
      <category>development</category>
    </item>
    <item>
      <title>Drill down. All the way — even when the real code is five files away</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 31 Aug 2026 12:01:00 +0000</pubDate>
      <link>https://dev.to/linb/drill-down-all-the-way-even-when-the-real-code-is-five-files-away-3o3a</link>
      <guid>https://dev.to/linb/drill-down-all-the-way-even-when-the-real-code-is-five-files-away-3o3a</guid>
      <description>&lt;p&gt;You click a card on the dashboard. Looks like nothing — one component, right there in the file you're already looking at.&lt;/p&gt;

&lt;p&gt;It isn't. It's one of several produced by a &lt;code&gt;.map()&lt;/code&gt;. It's the branch of a conditional that happens to be on screen — the other branch is one state change away, and invisible right now. What actually draws it is a wrapper, with the real component a layer or two underneath. And that real component lives in a different file, reached through a re-export. Four walls between the pixel you clicked and the code that made it: a loop, an invisible branch, a wrapper, a re-export.&lt;/p&gt;

&lt;p&gt;Most tools stop at the first wall. Land you in the wrong place, or just the nearest place, and call it done. That's the actual pain: you click, you get &lt;em&gt;somewhere&lt;/em&gt;, but not &lt;em&gt;there&lt;/em&gt;. You still have to go hunting.&lt;/p&gt;

&lt;p&gt;We built drill-down to keep going. Through the &lt;code&gt;.map()&lt;/code&gt;, through the wrapper, through the re-export, all the way to the file where the thing is actually defined — and back up again, one layer at a time, whenever you want.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why stopping at the first wall is the default failure mode
&lt;/h2&gt;

&lt;p&gt;The screen you're looking at is a flat tree of pixels. The source that produced it is a nested tree of expressions, conditionals, and loops, spread across however many files someone decided to spread it across. These two trees don't line up file-for-file, wall-for-wall.&lt;/p&gt;

&lt;p&gt;So a click can't just be "find the matching thing." It has to be a path — DOM node, then the JSX expression that drew it, then the component call, then the component's actual definition, then the file that definition lives in, then the call site above that passed the props in. Stopping one layer too early is the single most common way a "click to find it" feature quietly fails.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four walls that stop a shallow tool cold
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The &lt;code&gt;.map()&lt;/code&gt; wall.&lt;/strong&gt; One line of JSX produces five cards. Click any of them, you land on that one line — we don't pretend to know "which iteration" you clicked, that's runtime data, not source structure, faking it just makes the tool unpredictable. What we do instead: land on the map expression, then let you drill one more level down, into the actual template structure sitting inside it. Two honest stops instead of a guess.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The invisible-branch wall.&lt;/strong&gt; &lt;code&gt;{isVip ? &amp;lt;GoldBadge /&amp;gt; : &amp;lt;SilverBadge /&amp;gt;}&lt;/code&gt; — only one branch is on screen right now. Click into the one that isn't, and a shallow tool just says "nothing to show." We render that branch on its own instead, like flipping the switch for a second, so you actually see it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The re-export wall.&lt;/strong&gt; The component you clicked isn't defined where you are. It's imported, maybe through a barrel, maybe through two. A tool that stops here drops you at the import line and calls it a day. Drilling through means landing on the real definition, without losing track of what props the original call site was passing — otherwise you land in a strange file with no idea how you got there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The wrapper wall.&lt;/strong&gt; &lt;code&gt;withAuth(withTheme(Card))&lt;/code&gt;. Click the rendered thing — is "this component" the innermost &lt;code&gt;Card&lt;/code&gt;, or something a wrapper is doing? A shallow tool picks one and hopes. Drilling means you can move through every layer of wrapping, one click at a time, and see what each one is actually responsible for.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule that keeps the drill-down predictable
&lt;/h2&gt;

&lt;p&gt;One rule, applied every time: land somewhere definite first, then give an explicit way to go deeper or pull back — never a silent guess.&lt;/p&gt;

&lt;p&gt;First click: the smallest meaningful JSX unit closest to what you clicked. Not the outer wrapper, not the raw DOM leaf.&lt;/p&gt;

&lt;p&gt;Click again, or use an explicit gesture, and you move up the chain — component call, then the call site that passed props in, then the file the component actually lives in. This is the same chain behind the breadcrumb trail from our earlier walkthroughs — here we're talking about the rule driving it, not the visual.&lt;/p&gt;

&lt;p&gt;This rule only got solid after running it against a few hundred real templates. It wasn't right on a whiteboard the first time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Drilling the other direction, from code into canvas
&lt;/h2&gt;

&lt;p&gt;Cursor on a &lt;code&gt;.map()&lt;/code&gt; expression: every one of the N rendered results lights up on canvas, not just the first.&lt;/p&gt;

&lt;p&gt;Cursor on a HOC's definition: every rendered instance using that wrapper lights up — could be scattered across totally different screens.&lt;/p&gt;

&lt;p&gt;Cursor on an inactive branch: canvas renders that branch on its own so you can actually see it, instead of a dead end.&lt;/p&gt;

&lt;h2&gt;
  
  
  The nastiest case we could find
&lt;/h2&gt;

&lt;p&gt;shadcn-admin, the left sidebar — &lt;code&gt;components/layout/nav-group.tsx&lt;/code&gt;. You click one nav item. On screen it's just a button.&lt;/p&gt;

&lt;p&gt;It isn't one thing. It's one of N produced by &lt;code&gt;items.map(...)&lt;/code&gt;, and inside that map a three-way branch decides what the item even is: a plain &lt;code&gt;&amp;lt;SidebarMenuLink&amp;gt;&lt;/code&gt; when it has no sub-items, a &lt;code&gt;&amp;lt;SidebarMenuCollapsedDropdown&amp;gt;&lt;/code&gt; when the sidebar is collapsed, or a &lt;code&gt;&amp;lt;SidebarMenuCollapsible&amp;gt;&lt;/code&gt; otherwise — so two of the three are off screen right now, in whatever state you're not currently in. The button you actually see is &lt;code&gt;&amp;lt;SidebarMenuButton asChild&amp;gt;&lt;/code&gt;, a Radix Slot wrapper that merges its props onto its child, and its real definition isn't in this file at all — it's in &lt;code&gt;@/components/ui/sidebar&lt;/code&gt;, behind a barrel export.&lt;/p&gt;

&lt;p&gt;Click it. First stop: the closest JSX layer. Drill up: you're inside the &lt;code&gt;items.map(...)&lt;/code&gt; that generates the whole menu. Flip to the branch that isn't showing — the collapsed-sidebar dropdown — and the canvas renders just that branch on its own, without actually collapsing anything. Peel the &lt;code&gt;asChild&lt;/code&gt; Slot to see what it's merging onto. Jump to the real &lt;code&gt;SidebarMenuButton&lt;/code&gt;: a different file, through the barrel.&lt;/p&gt;

&lt;p&gt;Four walls — a &lt;code&gt;.map()&lt;/code&gt;, an invisible branch, a Slot wrapper, a re-exported definition — one click, and you get through all of them. (Every name above is real: &lt;code&gt;nav-group.tsx&lt;/code&gt;, &lt;code&gt;SidebarMenuLink&lt;/code&gt;/&lt;code&gt;SidebarMenuCollapsible&lt;/code&gt;/&lt;code&gt;SidebarMenuCollapsedDropdown&lt;/code&gt;, and &lt;code&gt;SidebarMenuButton&lt;/code&gt; from &lt;code&gt;@/components/ui/sidebar&lt;/code&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is a real pain point, not a nice-to-have
&lt;/h2&gt;

&lt;p&gt;Every "click to inspect" feature that exists eventually hits one of these four walls and just stops — usually silently, so you don't even realize you're in the wrong place until you've wasted five minutes editing the wrong file. That's the actual cost: not "this feature is missing," but "I trusted where it took me and it was wrong."&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means for teaching React
&lt;/h2&gt;

&lt;p&gt;Put a cursor inside a &lt;code&gt;.map()&lt;/code&gt;, watch eight elements light up at once — that teaches list rendering better than any explanation of the &lt;code&gt;key&lt;/code&gt; prop ever has, and it only works because the tool knows exactly how many things to light up.&lt;/p&gt;

&lt;p&gt;HOCs and wrapped components are one of the hardest things for beginners to reason about — "what even is this component" doesn't have one right answer. Drilling up through the wrapper stack, one layer at a time, and seeing what each one is actually doing, beats defining "higher-order component" on a slide.&lt;/p&gt;

&lt;p&gt;Being able to see both branches of a conditional side by side — what a VIP sees, what everyone else sees — without touching state or faking test data is something a lot of people never get straight even years into writing React.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means for reviewing AI's diffs
&lt;/h2&gt;

&lt;p&gt;The common workflow now: AI hands you a diff, you review it. Real problem — if that diff touches one line inside a &lt;code&gt;.map()&lt;/code&gt;, you genuinely can't tell from the text alone whether it changes every item in that list or just one special case. Layer ambiguity is a live blind spot in code review, and it's exactly the kind of thing that slips through when someone's skimming a PR at the end of the day.&lt;/p&gt;

&lt;p&gt;With a real notion of layer, an AI-generated change can be labeled by what it actually touches — a shared component definition (hits every call site) versus a single call site's props (hits just this one). That distinction is the whole ballgame for judging whether a change is safe, and most diff views today just don't carry it.&lt;/p&gt;

&lt;p&gt;Push it further — if an AI agent itself can sense which layer a change lands on, it avoids a common failure mode: thinking it edited one instance when it actually touched the shared definition, quietly breaking five other places that use that component.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three questions for any tool claiming to handle this
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Click one of several elements generated by a &lt;code&gt;.map()&lt;/code&gt; on the canvas — does the code correctly select the map expression that generated it? Can you drill one step further into the actual template? What happens with nested maps?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click a component wrapped in a HOC — can you climb up / down, one layer at a time, and see what each wrapper actually does?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Put your cursor on a conditional branch that isn't currently rendering — does the canvas actually render that branch for you, or does it just apologize that there's nothing to show?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>react</category>
      <category>reactjsdevelopment</category>
      <category>ux</category>
      <category>uxdesign</category>
    </item>
    <item>
      <title>No npm install. No dev server. A faster way to iterate on React UIs?</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 24 Aug 2026 12:01:00 +0000</pubDate>
      <link>https://dev.to/linb/no-npm-install-no-dev-server-a-faster-way-to-iterate-on-react-uis-173a</link>
      <guid>https://dev.to/linb/no-npm-install-no-dev-server-a-faster-way-to-iterate-on-react-uis-173a</guid>
      <description>&lt;p&gt;You've done this a hundred times. Clone a template. npm install. Wait. Maybe a peer dependency fight. Fix the node version. Install again. Start the dev server. Wait for the first compile. Now you can finally look at the thing.&lt;/p&gt;

&lt;p&gt;Nobody complains about this anymore. We just accept it as the cost of looking at code. But if all you wanted was to glance at a component or tweak one prop, that whole ritual is wildly out of proportion to the task.&lt;/p&gt;

&lt;p&gt;So — why does "look at this code" require an entire toolchain as a prerequisite?&lt;/p&gt;

&lt;h2&gt;
  
  
  That whole ritual was invented, not required
&lt;/h2&gt;

&lt;p&gt;Browsers have been able to run JS forever. Running was never the hard part. Compiling is the hard part — JSX isn't valid JS, TypeScript annotations aren't valid JS, both need translating first.&lt;/p&gt;

&lt;p&gt;The standard answer puts that translation on your machine, in your terminal, through a bundler running on Node, and it hands the browser a finished file afterward. That's a historical accident, not a law of nature. Browser-side compilers just weren't mature when this pattern got set. Node was there first.&lt;/p&gt;

&lt;p&gt;If the compiling itself moves into the browser, the whole chain in between just goes away.&lt;/p&gt;

&lt;h2&gt;
  
  
  Putting a compiler in the browser is harder than it sounds
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Parsing TSX isn't free.&lt;/strong&gt; A real template is hundreds of files. Full type-checking on the main thread would lock up the UI. You have to decide what's actually needed to render — mostly that means syntax transforms and type erasure, not a full type-check on every keystroke.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;There's no filesystem to resolve against.&lt;/strong&gt; Node's module resolution assumes a real disk, a real node_modules, package.json exports fields. In a browser you're simulating all of that in memory — path aliases, workspace protocols, conditional exports, the works.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where do the packages even come from?&lt;/strong&gt; A template depends on real npm packages — MUI, shadcn, whatever. You can't ask the user to install first. Either resolve real package versions off a CDN, or pre-bundle the common ones — and match whatever's actually pinned in that template's package.json, or the render won't match the real project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Some plugins assume they're running in Node.&lt;/strong&gt; Build-time babel plugins, emotion's compile-time optimizations — a fair number of templates lean on these. You either reimplement the effect in the browser or find a runtime equivalent. Neither is free.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Recompiling everything on every keystroke would be miserable.&lt;/strong&gt; You need module-level caching and invalidation — only the file that changed, and whatever depends on it, gets rebuilt.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source maps have to survive the whole trip.&lt;/strong&gt; Errors, breakpoints, and any node-level mapping have to point back to your actual source line, not some transformed mess. That has to hold end to end, not just at one stage of the pipeline.&lt;/p&gt;

&lt;p&gt;None of this is exotic. It's just what a real React template looks like once you actually try to run it without Node standing in the middle.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we gave up to get here
&lt;/h2&gt;

&lt;p&gt;Being upfront about the tradeoffs, because a piece claiming none is a little suspect.&lt;/p&gt;

&lt;p&gt;Not every build-time plugin gets covered — projects leaning heavily on custom webpack/vite codegen plugins are only partially supported right now. Big monorepos have a real compile cost on first load, incremental after that, but not instant the very first time. And this isn't a replacement for a production build — production still needs a real build tuned for tree-shaking and performance. This is a tool for looking and editing, not a deploy pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is the floor the other two pieces stand on
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://blog.crossui.com/2026/08/two-way-is-not-the-same-as-symmetric" rel="noopener noreferrer"&gt;SCD(Symmetric Collaborative Development)&lt;/a&gt; selection needs position info injected at compile time, and a live index kept in sync with it. If compiling happens in some black-box bundler on your machine, there's no place to slot that in. Owning the compiler means owning every step of it, so the index can live inside the pipeline instead of bolted on after.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://blog.crossui.com/2026/08/what-breaks-if-i-delete-this-file" rel="noopener noreferrer"&gt;The dependency graph&lt;/a&gt; needs imports resolved live, as you edit — not from some static analysis script run once, offline, drifting out of sync the moment you touch a file. A browser-side compiler means the graph updates incrementally, with you, instead of "run the script again."&lt;/p&gt;

&lt;p&gt;Neither of the other two pillars gets to be real-time without this one underneath it. It's the least visible of the three, and the one everything else depends on.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this actually looks like, side by side
&lt;/h2&gt;

&lt;p&gt;Old way: clone, npm install (thirty seconds to several minutes depending on the day, longer if peer deps fight you), sort out the node version, start the dev server, wait for the first compile.&lt;/p&gt;

&lt;p&gt;New way: open the file.&lt;/p&gt;

&lt;p&gt;The gap isn't "faster." It's a different category of thing. One is running a project. The other is opening a file. Your brain never has to switch into "this is an engineering task" mode just to look at a card component.&lt;/p&gt;

&lt;p&gt;We've already shown this holding up on real templates — Material Kit React, shadcn-admin — where "open it and it renders" isn't a demo trick, it's just what happens.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means for teaching React
&lt;/h2&gt;

&lt;p&gt;Environment setup is where most tutorials lose people. A lot of beginners hit an npm install error before they've written a single line of real React, and they walk away — and that has nothing to do with whether they could've learned the material.&lt;/p&gt;

&lt;p&gt;Zero-infrastructure flattens the gap between "open a real template" and "open a CodePen." A student can touch actual production-shaped code in the first session instead of waiting out a whole week of environment setup first.&lt;/p&gt;

&lt;p&gt;For instructors it kills a specific nightmare: half the room stuck on a different Node version, a different OS quirk, a different peer dependency error, each one eating fifteen minutes of class time that had nothing to do with React.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means for pairing with AI
&lt;/h2&gt;

&lt;p&gt;The part of AI pairing nobody talks about is the loop after the generation — you get a diff, and now you have to actually run it to see if it's right. The old loop: switch to a terminal, maybe install something new the AI just pulled in, wait for the build, wait for the dev server, then look. Call it two or three minutes per round trip, easily.&lt;/p&gt;

&lt;p&gt;Cut the compile step out and that loop collapses. The AI finishes, you open it, it's already rendered — no waiting stage in between. That turns human-AI back-and-forth into something closer to real-time instead of something metered out in build-times. If the AI keeps getting faster and the human verification step doesn't, all that generation speed just evaporates into the wait.&lt;/p&gt;

&lt;p&gt;There's a second-order effect too — an AI agent itself can look at a render in this environment and self-check (screenshot, check for errors) without spinning up a whole build chain inside its own sandbox first. This isn't just saving a human's coffee break. It's infrastructure for the "AI writes code, then checks its own screenshot" loop that's already how a lot of people work now.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three questions for any tool claiming to skip the build
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Open a template you've never seen. Do you have to run a single command line command before you see it rendered?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Change one file, one line. Does that mean waiting for a full recompile, or does it just... update?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When something breaks, does the stack trace point at your actual line, or at some scrambled, transformed mess three layers removed from what you wrote?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>frontend</category>
      <category>javascript</category>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What breaks if I delete this file? React tooling can't answer that.</title>
      <dc:creator>Jack Lee</dc:creator>
      <pubDate>Mon, 17 Aug 2026 14:20:24 +0000</pubDate>
      <link>https://dev.to/linb/what-breaks-if-i-delete-this-file-react-tooling-cant-answer-that-1eom</link>
      <guid>https://dev.to/linb/what-breaks-if-i-delete-this-file-react-tooling-cant-answer-that-1eom</guid>
      <description>&lt;p&gt;You want to delete a file.&lt;/p&gt;

&lt;p&gt;A quick search shows three direct imports. That's easy enough to see.&lt;/p&gt;

&lt;p&gt;The harder question is what those three files are used by.&lt;/p&gt;

&lt;p&gt;One may be a layout dependency. Another may be part of navigation. A third may feed a page that doesn't look related at first glance.&lt;/p&gt;

&lt;p&gt;So the real question isn't "Who imports this file?"&lt;/p&gt;

&lt;p&gt;It's "What breaks if I remove it?"&lt;/p&gt;

&lt;p&gt;Most tools don't actually keep a dependency graph around as something you can ask questions of. They keep a list of files and a pile of text search. That's not the same thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  A component tree is not a dependency graph
&lt;/h2&gt;

&lt;p&gt;People mix these up a lot, so worth separating.&lt;/p&gt;

&lt;p&gt;Component tree: who renders who, at runtime. Parent to child. React DevTools shows you this one.&lt;/p&gt;

&lt;p&gt;Dependency graph: who imports who, at compile time. Directed, sometimes has cycles, crosses files and packages freely.&lt;/p&gt;

&lt;p&gt;They're not the same shape. A provider might be a distant ancestor in the component tree, but in the dependency graph it's just one edge coming off main.tsx. You debug with the component tree. But when you're actually changing code, the thing you're navigating is the dependency graph — and that one's never had good tooling.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a real graph actually looks like
&lt;/h2&gt;

&lt;p&gt;Here's why building this is annoying, not fun-annoying, actually annoying:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Barrel chains.&lt;/strong&gt; &lt;code&gt;@/components&lt;/code&gt; → &lt;code&gt;components/index.ts&lt;/code&gt; → &lt;code&gt;chart/index.ts&lt;/code&gt; → &lt;code&gt;chart-widget.tsx&lt;/code&gt;. Three re-exports before you hit real code. Do you keep those middle hops as nodes in the graph? Keep them and it's noisy. Collapse them and you lose the truth of what's happening. We keep the edges, mark them transitive, and let you collapse the view when you don't care.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Path aliases.&lt;/strong&gt; &lt;code&gt;@/&lt;/code&gt;, &lt;code&gt;~/&lt;/code&gt;, whatever a monorepo's workspace protocol wants to call itself this week. The resolver has to actually understand the build config to draw the right edge, and the build config itself is sometimes three files stacked on each other.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;export * ambiguity.&lt;/strong&gt; Same symbol name coming in from two barrels, and which one wins depends on order. The graph has to remember that order or it's just wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dynamic imports.&lt;/strong&gt; &lt;code&gt;React.lazy(() =&amp;gt; import('./Page'))&lt;/code&gt;. Static analysis can see it, but it's an edge that only activates at runtime. Should probably be a dashed line, not a solid one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Type-only edges.&lt;/strong&gt; &lt;code&gt;import type&lt;/code&gt; doesn't exist at runtime. Delete that file and your app still runs, but tsc breaks. Two different kinds of edges, same graph.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cycles.&lt;/strong&gt; Real repos have them constantly, plenty of them harmless. The graph has to represent that, not fall over.&lt;/p&gt;

&lt;p&gt;None of this is exotic. It's just Tuesday in a real repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making the graph answer questions
&lt;/h2&gt;

&lt;p&gt;The point isn't "look, we drew a graph." The point is what you can ask it:&lt;/p&gt;

&lt;p&gt;Resolve-through — give me the file this import actually lands on, skip every barrel in between, one hop.&lt;/p&gt;

&lt;p&gt;Inbound edges — who references me? If I change this file, what screens does it touch? This is the actual answer to that opening question.&lt;/p&gt;

&lt;p&gt;Reachability from entry — can you get here from main.tsx at all? If not, it's dead code, or only a test imports it.&lt;/p&gt;

&lt;p&gt;Shortest path between two nodes — how does this page even use that util? The path itself is the explanation.&lt;/p&gt;

&lt;p&gt;Cut vertices — which files are chokepoints, where one change ripples everywhere? That's an objective basis for refactor priority, not someone's gut feeling.&lt;/p&gt;

&lt;p&gt;None of this is a visualization trick. It's turning engineering instinct into something you can actually ask and get an answer to.&lt;/p&gt;

&lt;h2&gt;
  
  
  The graph is never complete, and that's fine
&lt;/h2&gt;

&lt;p&gt;Real repos always have holes — a missing peer dep, an optional import, an alias nobody set up, a file that flat out doesn't exist anymore.&lt;/p&gt;

&lt;p&gt;Two ways to handle that. Throw out the whole graph the second one edge fails to resolve, which is what most tools do. Or mark that edge unresolved and keep building the rest of the graph around it. We do the second. An incomplete graph you can still navigate beats a complete-or-nothing graph every time. (We wrote about the mechanics of that specific move — bypassing a broken import instead of stopping — in an earlier post, if you want the deep dive on that one piece.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Graph plus symmetric editing
&lt;/h2&gt;

&lt;p&gt;This is where the two pieces click together, and it's the part that's genuinely hard to copy.&lt;/p&gt;

&lt;p&gt;Symmetric editing gives you precision inside one node — this thing on screen maps to exactly this AST node. The dependency graph gives you reach across nodes — this AST node's position in the whole repo's topology.&lt;/p&gt;

&lt;p&gt;Put together: click a card on screen, and you don't just land on its JSX. You get its full path back to the entry point — through the route, the view, past three barrels, to the real file — plus who else depends on it. A precise map with no way to zoom out is just a precise island. A zoomed-out map with no precision is just a picture. You need both to actually navigate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters more now that AI writes half the code, not less
&lt;/h2&gt;

&lt;p&gt;The instinct is that once AI writes your code, you stop needing to understand structure. It's actually the opposite.&lt;/p&gt;

&lt;p&gt;The mistake AI tools make most often is a graph mistake — importing something that doesn't exist, or not noticing a util is already used in five places and changing it breaks all five. The model sees a local window of tokens. It doesn't see the topology.&lt;/p&gt;

&lt;p&gt;The part of the job that's left for a human is exactly "is this change safe on the graph" — inbound edges, reachability, cut vertices. That's precisely what a limited context window can't hold. So a navigable dependency graph isn't a nostalgia tool for people who refuse to use AI. It might be the one navigation skill a human still has to own.&lt;/p&gt;

&lt;p&gt;And the gap in speed is not subtle. Working it out by hand means opening tabs, running greps, manually throwing out the false hits from a string search — that's minutes, and it's still sometimes wrong. A precomputed graph answers the same question, barrels and all, in milliseconds. Minutes versus milliseconds, and the minutes might be a wrong answer too.&lt;/p&gt;

&lt;h2&gt;
  
  
  A real walkthrough, with a sting in it
&lt;/h2&gt;

&lt;p&gt;Say you're in Material Kit React and decide that &lt;strong&gt;&lt;code&gt;logo.ts&lt;/code&gt;&lt;/strong&gt; is no longer needed. Maybe the product has moved to a different branding component, or the logo is simply being removed from the application.&lt;/p&gt;

&lt;p&gt;At first, it looks like a trivial deletion.&lt;/p&gt;

&lt;p&gt;You check the graph and find three direct consumers: &lt;strong&gt;&lt;code&gt;layout&lt;/code&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;nav&lt;/code&gt;&lt;/strong&gt;, and &lt;strong&gt;&lt;code&gt;not-found-view&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That's already useful. But the interesting part starts when you follow the &lt;strong&gt;upstream edges&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;layout&lt;/code&gt; isn't the end of the story. It is itself used by higher-level application components. Follow that edge and you can see where the layout enters the application structure. &lt;code&gt;nav&lt;/code&gt; leads into another chain of consumers. &lt;code&gt;not-found-view&lt;/code&gt; comes through yet another path, eventually connecting back to the routing layer.&lt;/p&gt;

&lt;p&gt;So instead of seeing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;logo.ts
├── layout
├── nav
└── not-found-view
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;you can keep walking:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     &amp;lt;higher-level page/router&amp;gt;
                 │
         ┌───────┴───────┐
         │               │
   layout.tsx        nav.tsx
   (import)           (import)
         │               │
         └──────┐ ┌──────┘
                ▼ ▼
              logo.ts
                  ▲
                  │
             (import)
        not-found-view.tsx
                  │
      &amp;lt;higher-level page/router&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The important question is no longer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Who imports &lt;code&gt;logo.ts&lt;/code&gt;?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It's:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What parts of the application are sitting above those consumers?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That distinction matters when you're deleting something.&lt;/p&gt;

&lt;p&gt;A direct-reference search can tell you that three files need attention. It doesn't necessarily give you the context needed to understand &lt;strong&gt;where those three files participate in the application&lt;/strong&gt;. You can easily remove the component, clean up the obvious imports, and still miss an affected path higher in the tree.&lt;/p&gt;

&lt;p&gt;And that's where seemingly harmless deletions become expensive.&lt;/p&gt;

&lt;p&gt;A shared component can sit low in the dependency graph while its consumers sit inside completely different application paths. One may affect the main layout. Another may affect navigation. Another may only appear on an error route that nobody happened to test locally.&lt;/p&gt;

&lt;p&gt;Without the graph, the usual workflow is familiar: search references, make the change, run what you normally run, and assume the result is complete. The missing dependency may not surface until a particular route is opened, a rarely used state is rendered, or another developer hits the code path you didn't know existed.&lt;/p&gt;

&lt;p&gt;With the graph, you can inspect those upstream paths &lt;strong&gt;before deleting the file&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can see that &lt;code&gt;logo.ts&lt;/code&gt; is not really an isolated file. It's a small node sitting underneath several higher-level parts of the application. That gives you the information needed to decide whether the deletion is actually safe, which consumers need to be changed, and how far the impact extends.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/3DR8kVUC4hA"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The file may take five seconds to delete.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Understanding what that deletion means is the real job.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That is the value of the graph: not merely finding references, but making the &lt;strong&gt;dependency footprint of a change visible before the change is made&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  What this means if you're teaching React
&lt;/h2&gt;

&lt;p&gt;Courses teach the component tree. The job is navigating the dependency graph.&lt;/p&gt;

&lt;p&gt;Someone who can trace an import chain can onboard onto any codebase. Someone who only knows hooks can only onboard onto the one they were taught on.&lt;/p&gt;

&lt;p&gt;The difference is simple: &lt;strong&gt;the component tree teaches you how the UI is assembled; the dependency graph teaches you how the codebase is connected.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That matters the moment something stops working.&lt;/p&gt;

&lt;p&gt;A student sees a blank screen. Instead of guessing which component is broken, they can start from the component they were working on and follow its dependency chain. One import leads to another, then another, until the broken dependency becomes visible.&lt;/p&gt;

&lt;p&gt;The graph turns:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Something is broken.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;into:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“This dependency is breaking this path, which affects these components.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is a much more useful debugging skill.&lt;/p&gt;

&lt;p&gt;It also changes how students learn unfamiliar codebases. They don't have to understand the entire project first. They can start from something they recognize — a page, a component, an import — and navigate outward through the graph. Each edge answers a concrete question: &lt;strong&gt;where does this come from, and what depends on it?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is particularly valuable when the application itself can't help you. A broken import can prevent the UI from rendering, but it doesn't erase the source-level dependency graph. You can still trace the chain, locate the failure, and understand what is happening even when the canvas is dead.&lt;/p&gt;

&lt;p&gt;And you can deliberately turn that into a lesson.&lt;/p&gt;

&lt;p&gt;Rename an export in a &lt;strong&gt;"Shadcn Admin"&lt;/strong&gt; template. Break an import. Watch the affected part of the graph change. Then trace the path back to the change that caused it.&lt;/p&gt;

&lt;p&gt;Now students aren't just being shown a correct React example. They're learning how to &lt;strong&gt;investigate a system when their change causes something else to fail&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That's the real value.&lt;/p&gt;

&lt;p&gt;The goal isn't to teach students another React API. It's to give them a way to enter an unfamiliar codebase, understand its structure, trace problems, and keep working when the obvious surface — the running application — stops telling them what is wrong.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/Oesi3dvXHoQ"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;And barrel traversal made visible, in one click, fixes one of the most persistent beginner misunderstandings there is: that an import path tells you where the code actually lives. It usually doesn't.&lt;/p&gt;
&lt;h2&gt;
  
  
  Three questions for any tool claiming to handle this
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Can it jump through a barrel in one hop and land on the real definition?&lt;/li&gt;
&lt;li&gt;Can it tell you who references a file, including references that came in through a re-export?&lt;/li&gt;
&lt;li&gt;And when an import can't resolve, does it give up on the whole graph, or keep working with everything it can still see?&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  The ultimate debugging experience:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Can you hover over any file to see its import/export flow in real-time?&lt;/li&gt;
&lt;li&gt;Does it trace a crash back to the exact broken file in the import chain?&lt;/li&gt;
&lt;li&gt;Can you define custom interceptors to bypass failing modules and keep your app rendering?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Worth testing on whatever you're using now. We're not going to tell you what it'll find.&lt;/p&gt;
&lt;h2&gt;
  
  
  What this graph looks like on a real template
&lt;/h2&gt;

&lt;p&gt;We ran this against a real, popular template, not a toy repo. Because the full dependency map is massive, &lt;strong&gt;click the image below to download the high-resolution version&lt;/strong&gt; directly.&lt;/p&gt;

&lt;p&gt;Material Kit React dependency graph &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxaucbqvjtzbm9zcnba1t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxaucbqvjtzbm9zcnba1t.png" alt=" " width="800" height="532"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://blog.crossui.com/images/graphs/material-kit-react-full.png" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;blog.crossui.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Shadcn Admin dependency graph&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdzq8rvejn5pk0qwtqnqe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdzq8rvejn5pk0qwtqnqe.png" alt=" " width="800" height="474"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://blog.crossui.com/images/graphs/shadcn-admin-full.png" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;blog.crossui.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>architecture</category>
      <category>react</category>
      <category>softwareengineering</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
