Self-Printing React Block

A React page that shows the files it was built from, in a small file explorer.

A React page that shows how it was built. Open the explorer to read the files that made the page: the component, the build script, the package list and the styles.

  • Layouts with route groups

    The plan to give each kind of page its own layout with Next.js route groups: (site), (notes) with a left notes aside, (bare), and (artifacts) for self-contained HTML files.

  • Highlight

    The Highlight text component: a faint blue tint with square corners, whose side padding repeats on every line it wraps across.

  • UI stress test

    Nested components stacked inside each other, like bold and code inside links and tables inside lists, to find where the styles break.

  • Route groups

    An interactive explainer of Next.js route groups: how folders in parentheses leave the URL, share layouts, opt pages in and out, and isolate loading and error states.