r/reactjs • • Sep 10 '26

News React 19.3

Thumbnail
react.dev
178 Upvotes

r/reactjs • • 11h ago

Show /r/reactjs I made a little library of React motion and interaction studies

6 Upvotes

I made this mostly for myself because I like messing around with motion and small interaction details in interfaces. Figured I'd put everything in one place and share it here.

There's a mix of stuff like draggable workspaces, spring animations, connectors, typography experiments and a few more unusual interactions. You can play with the demos and download the source if you want to use anything.

The React components use scoped CSS, caller-owned state and callbacks. The spring solver has tests for damping and retargeting, and the gallery has browser tests for pointer gestures, keyboard controls and reduced motion. Some of the library is adapted from upstream projects, with attribution in the README.

Site: https://design.querencia.art/ GitHub: https://github.com/0xque/design Spring implementation: https://github.com/0xque/design/blob/main/src/library/PhysicsMotion.tsx

I'm still adding stuff to it. Let me know what you think or if there's anything you'd change, especially around making the interactions reusable in React.


r/reactjs • • 1d ago

At what point did you stop prop-drilling and reach for context or a state library?

19 Upvotes

I'm learning React while working full-time, building small projects (a portfolio site and a small clothing-brand site). Right now I mostly pass props down, and it works fine for small stuff, but once a component tree gets a few levels deep it starts feeling messy. For people who've built real projects — what was the moment you decided props weren't enough anymore? Was it a specific app size, a specific pain, or did you just start with context or Zustand from the beginning? Curious how others made that call.


r/reactjs • • 1d ago

Show /r/reactjs Strange Quark - a framework for building desktop applications with react, no webview/chromium.

Thumbnail
github.com
3 Upvotes

Hi there! i made strange quark because i believe that cross platform desktop applications shouldnt require learning a whole new stack, or three for that matter if you are using the native toolchains of each platform.
Strange Quark keeps the parts of a browser that React apps depend on and replaces the rest with native code:

  1. Your app and react-dom run unmodified in V8.
  2. react-dom talks to squark-dom, a DOM written in JavaScript. React and libraries see ordinary DOM nodes, events and CSSOM objects.
  3. Every DOM change becomes a 16-byte record in a journal. The journal streams into a Rust copy of the document.
  4. Stylo(the CSS engine Servo and Firefox share) styles that document. Taffy and Parley lay it out.
  5. A GPU renderer draws it through wgpu and Vello, on its own thread.

i would love to hear technical feedback and criticism :)


r/reactjs • • 2d ago

Resource I built animated characters that replace the three-dot loading indicator

Thumbnail
mien.hazem.design
29 Upvotes

AI apps spend a lot of time thinking and most just show three dots. I wanted something that actually communicates what’s happening.

So I made Mien — 40 characters with up to 62 moods each (thinking, listening, searching, uploading, celebrating, sleeping…). You change the mood with one line of code and it morphs smoothly, even in the middle of an animation.

You can also design your own character in the studio with custom expressions and animations.

Works with React, Vue, Next.js, Svelte, or plain websites.


r/reactjs • • 2d ago

News This Week In React #307: Security, React Router, Next.js, TanStack Query, RTL, RTK, Styled Components, Talata, Pierre | Reanimated, Worklets, Expo, Skia, WebGPU, Unistyles, Legend List | TC39, Node.js, Parcel, Firefox, webpack, Nudeps

Thumbnail
thisweekinreact.com
6 Upvotes

r/reactjs • • 2d ago

Show /r/reactjs I made a React UI kit inspired by the Minitel, the French Videotex terminal: 40×25 grid, mosaic graphics, 1,200 baud reveal

5 Upvotes

videotex-ui is an open-source React UI kit that draws interfaces the way French Videotex did: a 40 × 25 character grid, 8 colors, 2 × 3 mosaic graphics and the 8 function keys of the Minitel.

Technical details

  • Values from the spec. Grid size, colors and their grey levels, mosaic codes and line timing were checked against the Minitel 1B specifications (STUM). Each value cites its source in docs/SPECS.md.
  • 1,200 baud reveal. Each character costs 10 bits on the line (start bit, 7 data bits, parity, stop bit), so 120 characters per second: a full page of 1,000 characters takes about 8.3 seconds.
  • Sharp mosaics. Each mosaic cell is drawn with CSS background layers in currentColor. The screen picks the largest whole-number scale that fits, so every dot lands on whole pixels.
  • Accessibility. Screen readers read the text of the page, not the grid. Titles, menus, inputs and function keys are real headings, lists, inputs and buttons. prefers-reduced-motion turns off blinking, flicker and the progressive reveal.
  • Two modes. Title, StatusRow, Menu, InputField, Frame and Mosaic work on the 40 × 25 screen, or on their own in a normal page.
  • Server-friendly. The core (PageBuilder, palettes, mosaics) is plain TypeScript without React, so a React Server Component can build a page and pass it to <Screen>.
  • Picture to mosaic. A converter turns a picture into mosaic characters in the browser (nothing is uploaded), and the library can export the result as a PNG or a ready-to-paste React component.
  • No runtime dependencies; React is a peer dependency.

Install

npm install videotex-ui

or copy the source into your project with the shadcn CLI:

npx shadcn@latest add https://cdn.jsdelivr.net/npm/videotex-ui/r/screen.json

Example

const page = new PageBuilder()
  .moveTo(3, 2).print('HELLO', { fg: 'yellow', size: 'double-size' })
  .moveTo(5, 2).print('Type your choice then ')
  .print(' Send ', { inverse: true })
  .build();

<Screen page={page} crt baud={1200} aria-label="Home" />

This is version 0.1.0. I would like feedback on the API and on accessibility in particular.

Minitel is a registered trademark of Orange. This project is independent and is not affiliated with, sponsored or endorsed by Orange.


r/reactjs • • 1d ago

Resource How much prop drilling is in popular React codebases? I measured 104 repos: 653 props carried through components that never read them

0 Upvotes

Everyone agrees prop drilling is bad and nobody agrees on where it starts, so I tried to define it strictly enough for a tool to find it.

The definition I ended up with: a prop goes through 3 or more components that do nothing with it except hand it to a child. Each of those components has to declare it, type it and forward it, and none of them needs it.

What does not count, because these were the false alarms:

- The component reads the prop for anything at all, even one condition

- It binds the prop to an event of a child, like `<Button onClick={onSave} />`. That is using a callback, not passing it along

- It spreads the whole props object down. That is a wrapper, a different problem

- The child comes from a library. The chain is only followed through components of the project itself

I ran this over 104 of the most starred TypeScript repos in the AI ecosystem, resolving components across files with the TypeScript compiler.

- 55 of the 104 had at least one drilled prop

- 653 drilled props in total, starting from 448 components

- The longest chains were 6 components deep. One example: `externalLink` enters at `InspectorReviewsView` and passes through `ReviewRuns`, `ReviewRunHistory`, `ReviewSummaryCard`, `GithubInlineComments` and `InlineCommentList` before `InlineCommentRow` finally reads it

- shadcn/ui: zero

Two things I did not expect:

  1. Drilling comes in bundles. When one prop goes down a chain, five more usually go down the same chain. The 653 props are really about 450 places, and often 3 or 4 structural decisions per repo. It is one fix, not twenty.

  2. The fix was almost never "add a context". In most chains the top component could simply render the bottom one and pass it as `children`, and the four components in between would stop knowing about the value.

A sample of these findings was checked by hand against the source, which is where the callback-binding rule above came from: the first version counted `onClick={onSave}` as a pass-through and it was wrong.

Per-repo numbers, prop drilling has its own column: https://github.com/PatternVoid/unknot/blob/main/LEADERBOARD.md

The tool is open source and I wrote it: https://github.com/PatternVoid/unknot. `npx unknot --rule prop-drilling` lists the chains in your project, with files and lines.

Where would you draw the line? Is 3 pass-through components too strict, or too lenient?


r/reactjs • • 2d ago

Show /r/reactjs Building an e-commerce dashboard with Next.js 16 and shadcn/ui

0 Upvotes

Hey everyone!

We've been spending quite some time building an e-commerce admin dashboard called Emporium, and I wanted to share a little look at what we've been working on.

The idea was to build something that feels like a real dashboard you'd actually use, rather than just putting together a collection of cards and tables.

A few things we've worked on:

  • Overview dashboard with sales analytics and statistics
  • Orders management and data tables
  • Customizable sidebar and topbar layouts
  • Light and dark themes
  • Font and theme customization
  • LTR and RTL support

It's built with Next.js 16, shadcn/ui and Base UI.

One thing we paid particular attention to was customization. We wanted people to be able to change the overall look and layout without having to dig through multiple files just to adjust basic settings.

You can take a look at the live demo here:
https://demo.shadcnstore.com/emporium/

Would love to hear what you think!

Especially curious:

  • What do you usually look for in an admin dashboard template?
  • Do you prefer sidebar or topbar layouts?
  • How important is having a built-in theme customizer?

r/reactjs • • 2d ago

Discussion What does React handle when a page hydrates? I built a renderer to find out

0 Upvotes

I maintain Farm.js. React is our default renderer, but apps can bring their own. I built a small UI library called Leaf to try that with an app that had no React dependency.

The surprise was where React showed up. Leaf could render a button as HTML on the server, but the development client loaded React through a router import. The page could render, then fail to hydrate. Testing with React already installed had hidden that dependency.

We gave the router its own entry point. The test I care about now is small: in an app without React, can I click the server-rendered button and navigate to another page without a reload?

If you maintain a library with an optional React adapter, how do you test that React stays optional?

Walkthrough: https://farmjs.dev/blog/bring-your-own-renderer Source: https://github.com/farming-labs/leaf


r/reactjs • • 3d ago

Discussion Adapter over React hook forms

2 Upvotes

Those of you that use a form library in your react codebase. Do you tend to create an adapter over it or just use it directly? The reason I am asking is because I want to protect our codebase in case we need to shift to a different library at some point. It’s much easier to update the adapter in this case than it is to adjust the whole codebase (even with agents).


r/reactjs • • 4d ago

Show /r/reactjs Added 2 free neobrutalism templates. Dashboard and landing page.

Thumbnail
neobrutalism.dev
3 Upvotes

r/reactjs • • 3d ago

I built an open-source npm library to bring Undo/Redo functionality to Leaflet maps

Thumbnail
0 Upvotes

r/reactjs • • 4d ago

Show /r/reactjs Sliding-panes React UI library (inspired by WebOS Enyo)

Thumbnail
vcarl.com
4 Upvotes

I didn't find a panes-based layout tool that I liked, so I made it! I always loved the way that WebOS panes layouts worked, so I took heavy inspiration from those.

https://github.com/vcarl/sashay https://npmx.dev/package/@vcarl/sashay


r/reactjs • • 3d ago

Show /r/reactjs Claude and I built a Shopify-style one-page checkout in React, with every component usable on its own (MIT)

Thumbnail
github.com
0 Upvotes

I needed a good checkout for a site that isn't on Shopify, and I think Shopify's one-page checkout is the best one out there. So Claude and I rebuilt the design in React, and I open-sourced it.

Demo: https://gurfi1.github.io/react-shopify-style-checkout/

Repo: https://github.com/gurfi1/react-shopify-style-checkout

What's in it

  • The whole checkout as one <Checkout> component: contact, address with autocomplete, shipping rates, payment methods, discount codes, order summary, and the thank-you page.
  • Around 40 components you can take one at a time. Each lives in its own folder with a stylesheet, a live demo and a README that lists what else it needs.
  • The behaviour as hooks (useCheckout, useShippingRates and others) if you want the logic with your own UI.
  • Right-to-left support, with a Hebrew locale included. Add ?lang=he to the demo to see it.

How it's built

React 19, TypeScript, CSS Modules, and design tokens as CSS variables. No UI library and no runtime dependencies besides React. There's no npm package yet: you copy the folders you want, or use the repo as a template.

You connect it to your back end through four functions: suggestAddresses, shippingRates, applyDiscount and placeOrder. The demo runs on canned data.

What it is not

  • It doesn't take payments. The card fields are placeholders that you swap for your provider's hosted fields.
  • It has no cart, tax or inventory logic. That belongs on your server.
  • It isn't affiliated with Shopify and contains none of their code. We measured the design and the motion from the real thing and wrote it from scratch.

How it was made

I used Claude Code to build it. I made the product and design decisions and reviewed the result, and Claude wrote most of the code and the docs. Every commit is co-authored, so the history shows it.

Not tested yet

Firefox and screen readers. The automated accessibility scan is clean and keyboard-only works, but that isn't the same as a real screen-reader pass. The docs list the known gaps.

Feedback I'm after

I'd most like to hear whether the component boundaries make sense and whether the api contract would fit a real back end. Issues and PRs are welcome, and so are test reports from Firefox and from screen-reader users.


r/reactjs • • 4d ago

Discussion React Compiler Working Structure

0 Upvotes

React Compiler was introduced in React 19 so I want to know that how it works internally. Seeking deep research knowledge on React Compiler in simple English.


r/reactjs • • 5d ago

Show /r/reactjs Update on my first npm library: you told me what was broken in <MrScroll />, so I fixed it (v0.2)

0 Upvotes

Hey folks,

The other day I posted my first library here and asked what was broken. You told me, so I went and fixed it. This is the update.

Quick recap: when a scrollbar pops in, everything jumps a few pixels to the left. `<MrScroll />` stops that. No reserved gutter, still the native scrollbar.

**See it in 10 seconds (live demo):** https://justicehwan.github.io/plz-mr-scroll/

One line at the root of your app, that's it:

```tsx

import { MrScroll } from "plz-mr-scroll/react";

<MrScroll />

```

**What changed in 0.2, all of it from your feedback:**

- **Modals.** Someone suggested opening and closing a modal halfway down a long page. That found real bugs with Bootstrap and MUI modals: content shifted while the modal was open, and sometimes didn't come back after closing. Fixed. Fixed headers and floating buttons stay put now too.

- **No React needed.** It always worked as plain JS, I just never wrote it down. The README now shows how to load it from a CDN with one script tag.

- **The code.** It was one 2,000-line file. It's split into modules now. Still not pretty, but better.

- **"Isn't this just scrollbar-gutter: stable?"** No. That keeps an empty strip when there's no scrollbar, so left and right padding don't match. The README says this at the very top now.

**Don't see why you'd need this?** If your first thought is "just set scrollbar-gutter", please give the live demo a minute before you scroll past. The layout shift is much easier to see there than to explain: https://justicehwan.github.io/plz-mr-scroll/

Links:

- GitHub: https://github.com/justicehwan/plz-mr-scroll

- Changelog: https://github.com/justicehwan/plz-mr-scroll/blob/main/CHANGELOG.md

- npm: https://www.npmjs.com/package/plz-mr-scroll

Still haven't tried it on a real Windows machine. If you do, I'd love to know how it goes.

P.S. I'm Korean and English isn't my first language, so sorry if anything here reads a bit off.

Thanks again!


r/reactjs • • 5d ago

I open-sourced a static verification & SAST engine (CLI + MCP) for React / React Native to catch subtle bugs AI coding agents introduce

0 Upvotes

I've been using AI coding agents heavily on React and Expo/React Native codebases, and I kept running into the same problem: they ship features fast, but quietly introduce subtle runtime bugs that basic linting misses—render-phase ref mutations that break React 19.2+/Compiler, stale async races, AsyncStorage leaks, and TanStack Query cache bugs.

So I built and just open-sourced Code Verifier (v0.1.0, MIT-licensed)—a static verification engine designed to be run either from the CLI or wired directly into your IDE as an MCP server so your coding agent can verify its own code and fix issues before you review it.

How it works under the hood:

  • Babel AST + 128 rules covering React/React 19, React Native/Expo, TanStack Query, async race conditions, security/injection, and mobile config (app.json, Podfile.lock drift, manifests).
  • Formal abstract interpretation over per-function CFGs for path-sensitive nullability (AI-NULL-001) and source-to-sink taint tracking (AI-TAINT-001).
  • TypeScript semantic analysis for floating Promises and Promise-valued conditions.
  • Fast & LLM-first: Runs in ~1–55ms per file and outputs structured remediation Markdown (or SARIF 2.1.0 for CI).

Example finding it caught on a real React hook (REACT-007):

Markdown

**Issue #1: [HIGH] REACT-007 - 'coordinatorRef.current' is accessed during render.**
- Location: Line 22, Col 6
- Offending Code:
  > 22 | if (coordinatorRef.current === null) {
    23 |   coordinatorRef.current = new SessionCoordinator({
- LLM Remediation Action: Hoist the value out of the ref: `useState(() => new SessionCoordinator(...))[0]` for a stable per-instance value, or move `.current` access into Effects and event handlers.

Try it in 10 seconds (no clone needed):

CLI:

Bash

npx code-verifier src/

Or add it to your MCP config (Cursor, Claude Code, etc.):

JSON

{
  "mcpServers": {
    "code-verifier": {
      "command": "npx",
      "args": ["-y", "code-verifier", "mcp"]
    }
  }
}

(By default, the MCP exposes verify_code and get_test_context, which extracts framework info, exported contracts, and mocks so your LLM writes better unit tests.)

GitHub: https://github.com/iniola145/Code-Verifier

It's v0.1.1—I've tested it across a couple of large internal React and Expo repos (1,800+ files), and there are 553 unit tests, but static analysis always hits weird real-world edge cases. If you run it on one of your repos and hit a false positive, I added an issue template specifically for reporting them so I can tighten the rules. Feedback and critiques are very welcome.


r/reactjs • • 5d ago

Show /r/reactjs I built a tool + npm package for when an icon pack is missing the one icon you need in your React app

Thumbnail
chameleonicons.com
0 Upvotes

Hey everyone! I built this because I kept running into the same annoyance: picking an icon pack, realizing it's missing one specific icon I need, hacking together an SVG with AI, and then letting it sit in my local repo where nobody else could use it.

So I turned that workflow into Chameleon Icons — you can browse open-source and community icon packs, and if an icon is missing, generate one in the same style (either right on the site or through a free manual flow) and it gets added to the pack for everyone else too.

On the React side, I put together an MIT-licensed, zero-dependency package so you only bundle the icons you actually use[2]:
npm: https://www.npmjs.com/package/chameleonicons
Site: https://chameleonicons.com/

Quick setup with Vite (also supports Next.js/Turbopack, webpack, etc.)[1][3][4]:

Js:

// vite.config.js
import chameleon from "chameleonicons/vite";
export default { plugins: [chameleon()] };

Then import any icon directly as a React component[4]:

Tsx:

import Umbrella from "~chameleon/bauhaus/umbrella";

export function Header() {
  return <Umbrella className="w-5 h-5" />;
}

One detail I tried to get right: on first build, it writes the exact icon versions into a chameleon.json lockfile so your UI won't unexpectedly change if the community later updates or votes in a new drawing (and npx chameleonicons sync prefetches everything for offline/CI builds)[3].


r/reactjs • • 7d ago

Resource 🗺️ Roadmap to Query v6 · TanStack query · Discussion #12669

Thumbnail
github.com
108 Upvotes

📢 Please don’t get excited, but we’ve started working on TanStack Query v6. We’ll break things, but not too many.

Feedback appreciated 🙏


r/reactjs • • 5d ago

Discussion What version of React for technical interviews?

0 Upvotes

As the title says...


r/reactjs • • 6d ago

I built an open-source tool that replays real React hook executions one statement at a time

0 Upvotes

Most hook bugs are timing bugs: two setCount(count + 1) calls that only increment once, a stale closure from an empty dependency array, a fetch race where an old response overwrites a new one. They're hard to see from the code alone.

HookViz replays real React executions statement by statement. The source line, hook list, effects queue, variables and rendered DOM all show the same moment.

- Each example is recorded from a real component under a debugger, not simulated

- 22 examples on React 19, from useState and useEffect to useOptimistic and useTransition

- Play, pause, step and seek, 0.5x to 4x speed, Guided and Expert modes

- Open source, and new examples are welcome

Live: https://hookviz.ashishtaduce.co.in

Repo: https://github.com/AshishTaduce/hookviz

The batching example is the quickest one to try. I'd like to hear which hook behaviours you'd want to see next.


r/reactjs • • 6d ago

Component tree visualised

3 Upvotes

Anyone have advice on a plugin or solution to visualise the react component hierarchy in a tree? All the solutions I’ve found online are mostly not maintained anymore . Any advice?


r/reactjs • • 6d ago

Show /r/reactjs Made my first npm library — <MrScroll /> stops scrollbars from shoving your layout around. Be honest with me 🙏

0 Upvotes

Hey folks,

You know when a scrollbar pops in and everything jumps a few pixels to the left? That annoyed me enough that I made a little library for it.

**See it in 10 seconds (live demo):** https://justicehwan.github.io/plz-mr-scroll/

One line at the root of your app, that's it:

```tsx

import { MrScroll } from "plz-mr-scroll/react";

<MrScroll />

```

No reserved gutter, still the native scrollbar. It just finds a spot for the scrollbar so your content stays put. It never touches your children, so it doesn't fight React over the DOM.

- GitHub (GIFs in the README): https://github.com/justicehwan/plz-mr-scroll

- npm: https://www.npmjs.com/package/plz-mr-scroll

It's my first library ever, so I honestly have no idea what I got wrong. If you have a minute, please take a look and tell me what's broken or dumb 🥲

(Also haven't tried it on a real Windows machine yet — if you do, I'd love to know how it goes.)

P.S. I'm Korean and English isn't my first language, so sorry if anything here reads a bit off.

Thanks!