<?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: Norbert Madojemu</title>
    <description>The latest articles on DEV Community by Norbert Madojemu (@norbert_madojemu_e4d44040).</description>
    <link>https://dev.to/norbert_madojemu_e4d44040</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3641968%2F70ef347e-c8e6-4826-bdfa-6a7bed113657.png</url>
      <title>DEV Community: Norbert Madojemu</title>
      <link>https://dev.to/norbert_madojemu_e4d44040</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/norbert_madojemu_e4d44040"/>
    <language>en</language>
    <item>
      <title>[Boost]</title>
      <dc:creator>Norbert Madojemu</dc:creator>
      <pubDate>Wed, 27 May 2026 00:11:06 +0000</pubDate>
      <link>https://dev.to/norbert_madojemu_e4d44040/-4fg4</link>
      <guid>https://dev.to/norbert_madojemu_e4d44040/-4fg4</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2" class="crayons-story__hidden-navigation-link"&gt;I Built a Screenshot-to-React Generator in 3 Hours&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/norbert_madojemu_e4d44040" class="crayons-avatar  crayons-avatar--l  "&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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3641968%2F70ef347e-c8e6-4826-bdfa-6a7bed113657.png" alt="norbert_madojemu_e4d44040 profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/norbert_madojemu_e4d44040" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Norbert Madojemu
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Norbert Madojemu
                
              
              &lt;div id="story-author-preview-content-3759844" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/norbert_madojemu_e4d44040" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3641968%2F70ef347e-c8e6-4826-bdfa-6a7bed113657.png" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Norbert Madojemu&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;May 26&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2" id="article-link-3759844"&gt;
          I Built a Screenshot-to-React Generator in 3 Hours
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/react"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;react&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/go"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;go&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;3&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            3 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>I Built a Screenshot-to-React Generator in 3 Hours</title>
      <dc:creator>Norbert Madojemu</dc:creator>
      <pubDate>Tue, 26 May 2026 23:58:35 +0000</pubDate>
      <link>https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2</link>
      <guid>https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2</guid>
      <description>&lt;p&gt;I got tired of translating Figma screens and UI screenshots into JSX before I could touch any real frontend work — routing, state, architecture, the stuff that actually matters. So I built a tool to do it for me.&lt;br&gt;
Drop a screenshot. Get a live, rendered React + Tailwind component. Streaming. In your browser. No build step.&lt;br&gt;
Here's how it works and what broke along the way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Stack&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next.js 14 — frontend, split-panel UI&lt;/li&gt;
&lt;li&gt;Go — backend, image compression, SSE streaming&lt;/li&gt;
&lt;li&gt;Claude API (claude-sonnet-4-5) — vision + code generation&lt;/li&gt;
&lt;li&gt;Babel Standalone + Tailwind CDN — zero-build iframe preview&lt;/li&gt;
&lt;li&gt;localStorage — conversion history&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How It Works&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;Screenshot → Go (compress + resize) → Claude Vision (streaming) → SSE → Next.js → iframe preview&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The Go backend compresses the image to under 5MB, base64 encodes it, and opens a streaming connection to Claude's API. Each text delta gets forwarded to the browser as a JSON SSE event:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;data: {"delta":"import"}
data: {"delta":" React from 'react';"}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The frontend accumulates the stream into a code string. Once generation finishes, the code gets injected into an iframe using document.write() — React, Babel, and Tailwind loaded via CDN. The component renders instantly with no build step.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Bugs That Hurt&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Chunk concatenation.&lt;/strong&gt; Claude streams tokens. &lt;em&gt;import&lt;/em&gt; and &lt;em&gt;React&lt;/em&gt; arrive as separate events. Early on I was joining them naively and getting &lt;em&gt;importReact from 'react'&lt;/em&gt; — which Babel rejects. Fix: wrapped each delta in a JSON object on the Go side, read &lt;em&gt;obj.delta&lt;/em&gt; on the frontend. JSON preserves whitespace exactly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Import statements in the iframe.&lt;/strong&gt; The iframe loads React via CDN. If the generated code also has &lt;em&gt;import React from 'react'&lt;/em&gt;, Babel throws. Fix: stripped all imports and replaced &lt;em&gt;export default&lt;/em&gt; before injecting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const clean = code
  .replace(/^import\s+[\s\S]*?from\s+['"][^'"]*['"];?\s*$/gm, "")
  .replace(/^export\s+default\s+/m, "const __Component__ = ")
  .trim();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Image media type mismatch.&lt;/strong&gt; Screenshots saved as &lt;em&gt;.png&lt;/em&gt; sometimes contain JPEG bytes. Claude rejects the mismatch. Fix: since the Go compressor always outputs JPEG, I hardcoded &lt;em&gt;image/jpeg&lt;/em&gt; as the declared media type regardless of the input format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Prompt That Works&lt;/strong&gt;&lt;br&gt;
You are an expert React and Tailwind CSS developer.&lt;br&gt;
Generate a complete, production-ready React functional component&lt;br&gt;
that faithfully reproduces the screenshot's layout, spacing,&lt;br&gt;
colors, and typography.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tailwind utility classes only — no inline styles&lt;/li&gt;
&lt;li&gt;Realistic placeholder text, not Lorem Ipsum
&lt;/li&gt;
&lt;li&gt;Mobile-first responsive classes&lt;/li&gt;
&lt;li&gt;Hover and focus states on interactive elements&lt;/li&gt;
&lt;li&gt;Return ONLY the component code, no markdown fences&lt;/li&gt;
&lt;li&gt;Self-contained, no required props
"No markdown fences" is critical — without it Claude wraps output in triple backticks and Babel chokes on them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What It Actually Produces&lt;/strong&gt;&lt;br&gt;
Tested on a Personal Details mobile screen, a dark SaaS landing page, and an analytic dashboard. All three came back with correct layout structure, color palette, component hierarchy, and interactive states. Light tweaking needed, but production-usable as a starting point.&lt;br&gt;
What it doesn't nail: exact hex colors (approximates to nearest Tailwind value), complex animations, data-driven elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost&lt;/strong&gt;&lt;br&gt;
Under $5 total — including every debug run and demo conversion during the build.&lt;br&gt;
Each conversion is ~500–800 prompt tokens + image tokens + ~2000 generation tokens. A few cents per screenshot. The tool replaces 30–60 minutes of manual JSX work per screen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Point&lt;/strong&gt;&lt;br&gt;
This doesn't replace frontend engineering. It removes the part that doesn't need one — translating static visuals into boilerplate markup. Get the structure from the screenshot, then spend your time on architecture, state, performance, and the interactions that actually require expertise.&lt;br&gt;
Three hours to build. $5 to run. Every hour saved after that compounds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code&lt;/strong&gt;&lt;br&gt;
Full source on GitHub: &lt;a href="https://github.com/norbertose09/Screenshot-figma-to-react" rel="noopener noreferrer"&gt;github.com/norbertose/screenshot-figma-to-react&lt;/a&gt;&lt;br&gt;
Stack: Next.js · Go · Claude API. Clone it, swap in your ANTHROPIC_API_KEY, and run.&lt;br&gt;
The $5 subscription is still active.&lt;/p&gt;

</description>
      <category>react</category>
      <category>go</category>
      <category>ai</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I Got Tired of Rebuilding Admin Dashboards, So I Made One Installable</title>
      <dc:creator>Norbert Madojemu</dc:creator>
      <pubDate>Thu, 25 Dec 2025 16:55:32 +0000</pubDate>
      <link>https://dev.to/norbert_madojemu_e4d44040/i-got-tired-of-rebuilding-admin-dashboards-so-i-made-one-installable-4ie2</link>
      <guid>https://dev.to/norbert_madojemu_e4d44040/i-got-tired-of-rebuilding-admin-dashboards-so-i-made-one-installable-4ie2</guid>
      <description>&lt;p&gt;Every admin dashboard I worked on looked different on paper — but structurally, they were the same.&lt;/p&gt;

&lt;p&gt;Same sidebar.&lt;br&gt;
Same header.&lt;br&gt;
Same colors.&lt;br&gt;
Same responsiveness problems.&lt;/p&gt;

&lt;p&gt;Yet for every new project, we rebuilt the layout from scratch.&lt;/p&gt;

&lt;p&gt;That changed the day I spent several minutes debugging a slightly “off” dashboard width in a new project and realized something was wrong with our process, not the layout.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Moment I’d Had Enough&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I was collaborating with a colleague on a new internal project. He built the initial admin layout, and when I opened it, something felt… off.&lt;/p&gt;

&lt;p&gt;The width wasn’t right.&lt;/p&gt;

&lt;p&gt;Not obviously broken. Just wrong enough to be annoying.&lt;/p&gt;

&lt;p&gt;So I spent several minutes digging through the layout:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;container widths&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;padding&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;sidebar calculations&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Tailwind classes stacked on Tailwind classes&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Eventually I found the issue, but the real question hit me harder:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why are we still debugging dashboard layouts in 2025?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We had already solved this problem before. Multiple times.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Real Problem (It Wasn’t the Layout)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The real issue wasn’t that dashboards are hard to build.&lt;/p&gt;

&lt;p&gt;It was that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;We kept rewriting the same TailwindCSS&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We copied files between projects and fixed breakages&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We re-tested mobile responsiveness every time&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minor inconsistencies kept creeping in across projects&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All this before writing a single line of business logic.&lt;/p&gt;

&lt;p&gt;That’s when the idea became obvious:&lt;/p&gt;

&lt;p&gt;What if the dashboard itself was just… installable?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Idea: A Reusable Dashboard as an npm Package&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Instead of rebuilding or copying layouts, I wanted to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Install a package&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Get a consistent admin dashboard structure&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Skip layout and responsiveness setup&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Focus purely on features and logic&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Not a design system.&lt;br&gt;
Not a full-blown framework.&lt;/p&gt;

&lt;p&gt;Just a &lt;strong&gt;solid dashboard foundation.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Building the Dashboard (The Comfortable Part)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I started fresh and rebuilt the dashboard using:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;React&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TypeScript&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TailwindCSS&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It intentionally mirrored what we already used internally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Same color palette&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Same font face&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Same sidebar/header/content structure&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Same responsive behavior&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This part was easy. Familiar. Almost relaxing.&lt;/p&gt;

&lt;p&gt;Then I decided to package it.&lt;/p&gt;

&lt;p&gt;That’s where things got… spicy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Turning It into an npm Package (The Humbling Part)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I genuinely thought this would be straightforward.&lt;/p&gt;

&lt;p&gt;It wasn’t.&lt;/p&gt;

&lt;p&gt;I actually gave up halfway through the first attempt.&lt;br&gt;
Then came back.&lt;br&gt;
Then almost gave up again.&lt;/p&gt;

&lt;p&gt;But a new project landed — one that needed the exact same dashboard — and I refused to rebuild it from scratch.&lt;/p&gt;

&lt;p&gt;So I pushed through.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Why Is My Design Broken?” — The Debugging Saga&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I packaged the dashboard, installed it into a host project, and…&lt;/p&gt;

&lt;p&gt;The layout broke.&lt;/p&gt;

&lt;p&gt;Spacing was off.&lt;br&gt;
Styles were missing.&lt;br&gt;
Everything looked almost right — which is the worst kind of wrong.&lt;/p&gt;

&lt;p&gt;After a lot of back-and-forth, I realized two key issues:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The styles weren’t being bundled correctly&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The host project wasn’t resolving the style paths properly&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This led to a painful loop:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;fix&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;build&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;publish&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;install&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;notice something else broke&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The package went through several versions.&lt;/p&gt;

&lt;p&gt;I think we’re currently on &lt;strong&gt;version 8&lt;/strong&gt; — the first one I’d confidently call “stable”.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Finally Worked&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once I slowed down and treated this like a real library (not a side hack), things clicked.&lt;/p&gt;

&lt;p&gt;The final approach looked like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Build and test the dashboard normally with React + TypeScript&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set &lt;strong&gt;React as a peer dependency&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;it is very important to note that you don’t ship React with your library, you share the host app’s React instance&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Clean up the project structure&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Properly bundle styles so they work in consuming apps&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add a build step&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Publish to npm&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Simple in theory. Unforgiving in practice.&lt;/p&gt;

&lt;p&gt;A Tiny Usage Example&lt;/p&gt;

&lt;p&gt;Once installed, using the dashboard looks something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { DashboardLayout } from "admin-dashboard";

function App() {
  return (
    &amp;lt;DashboardLayout&amp;gt;
      &amp;lt;h1&amp;gt;Dashboard Overview&amp;lt;/h1&amp;gt;
      {/* Your actual features live here */}
    &amp;lt;/DashboardLayout&amp;gt;
  );
}

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s it.&lt;/p&gt;

&lt;p&gt;Sidebar.&lt;br&gt;
Header.&lt;br&gt;
Responsive layout.&lt;/p&gt;

&lt;p&gt;Handled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why This Was 100% Worth It&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, when I start a new project:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;I install the package&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I get a familiar, consistent dashboard instantly&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Mobile responsiveness is already solved&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Styling is no longer a recurring discussion&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most importantly, I get to focus on functionality, not layout déjà vu.&lt;/p&gt;

&lt;p&gt;This wasn’t about building a “cool npm package”.&lt;/p&gt;

&lt;p&gt;It was about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Saving time&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Reducing cognitive load&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enforcing consistency&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Treating internal tooling like a first-class citizen&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you’ve rebuilt the same admin dashboard more than twice, this isn’t a motivation problem.&lt;/p&gt;

&lt;p&gt;It’s a systems problem.&lt;/p&gt;

&lt;p&gt;And sometimes, the most impactful solution isn’t a new feature —&lt;br&gt;
it’s packaging the thing you’re already tired of rebuilding.&lt;/p&gt;

&lt;p&gt;If this sounds familiar, maybe your next productivity win isn’t another refactor…&lt;/p&gt;

&lt;p&gt;Maybe it’s your first npm package.&lt;/p&gt;

</description>
      <category>react</category>
      <category>npm</category>
      <category>architecture</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
