r/reactjs • • Sep 10 '26

News React 19.3

Thumbnail
react.dev
178 Upvotes

r/reactjs • • 13h ago

Resource We recently cut down our React GitLab CI pipeline from ~15 min to 6 min using memoization and I have some thoughts to share

18 Upvotes

We are a three-person team where tech lead is more focused on management than technical work, so we often end up reinventing the wheel due to gaps in our knowledge. Recently, we realized we were waiting 15 minutes for an image to build on every push and usually we have to make two to three commits to get all pipeline stages passing (AI not doing its job properly and test coverage falls short.)

That's when I looked more into our React repo’s GitLab CI pipeline. The historical median was 14m 48s (p90 24m 51s). Earlier runner and test-suite updates had already brought runs down to about 9 minutes. After applying memoization across our jobs, the median was 6m 19s, with a best run of 5m 07s.

Here are the changes we made:

  • Decoupled install from test:unit and enabled the shared S3 npm cache keyed by package-lock.json. Install dropped from ~110s to 45–54s.
  • Skipped lint, typecheck, and test:a11y on pushes that don’t touch app code using rules:changes and optional: true in downstream needs.
  • Gave test:unit two modes. It runs the suite when test inputs change. On no-code pushes it fetches prior test and coverage artifacts via CI_JOB_TOKEN so our policy gates still pass. Reuse took 17–18s versus 2m 20s for a full run. We also replaced grep | head -1 with a single awk command after SIGPIPE caused an exit 141 under pipefail.
  • Moved Kaniko’s --cache-repo to the GitLab Container Registry after ECR returned a 403 for cache-layer uploads. The final image still goes to ECR. The build took 2m 20s cold and 36s warm on an unchanged-source push.

While none of this is groundbreaking, I got to implement it for our team and cut a real daily bottleneck—and I feel good about it.

https://medium.com/@veldt/how-i-cut-my-gitlab-ci-pipeline-from-18-minutes-to-5-minutes-using-memoization-cd743108702d

Personal Blog


r/reactjs • • 7h ago

Needs Help React 18 → 19, worth it if we don't need any of the new stuff?

0 Upvotes

My team wants to upgrade our app from React 18 to 19 and I'm kind of the only one against it.

It's a client-side SPA (Vite, TS, React Router , Keycloack), no SSR. I went through what 19 adds and honestly I don't see anything we'd use. Actions, useOptimistic, server components, none of that fits how the app works right now. So to me it's a bunch of testing for no real gain.

Their argument is basically "we'll have to do it at some point anyway."

Is there anything I'm missing that would make it worth it?


r/reactjs • • 6h ago

Discussion Three small React habits that cut down my re-render bugs

0 Upvotes

I'm learning React while working full-time, building small projects after work, and these three small habits actually reduced the silly re-render bugs I kept hitting:

  1. Keep state as low as it can live. I used to lift every bit of form state up to the top component and then wonder why everything re-rendered. Moving it down into the component that actually uses it fixed most of it.
  2. Stop wrapping everything in useMemo. Early on I memoised every function and value I could find and the code just got harder to read. Now I only reach for it when I can actually see a slow re-render.
  3. Derive instead of storing a second copy. I used to keep a filtered list in its own state alongside the original list, and they'd drift apart. Computing the filtered list from the state directly means there's nothing to go out of sync.

None of this is advanced — it's just what stopped my own bugs. What small habit did you pick up early that saved you the most debugging time?


r/reactjs • • 12h ago

Upgrading to ESLint 10 with eslint-plugin-react: why it passes locally and fails in CI, and a fix

0 Upvotes

If you've tried ESLint 10 with eslint-plugin-react, jsx-a11y or import, you've probably hit ERESOLVE or getFilename is not a function. None of the three has released ESLint 10 support yet.

What I found:

  • npm install -D eslint@10 in an existing project only warns, so it looks fine. npm ci in CI then fails.
  • The crash comes from settings.react.version: "detect" calling a function ESLint 10 remove

The manual fix is an npm overrides entry per plugin plus wrapping your config in fixupConfigRules from u/eslint/compat (details in the README).

I wrote a CLI that does it and proves your lint output didn't change: npx eslint-unstick --fix.

Repo: https://github.com/Raj-json/eslint-unstick. Feedback from real projects is very welcome, especially where it fails.


r/reactjs • • 1d ago

Show /r/reactjs We built an interactive React footer with a box-breathing experience (free on 21st.dev)

4 Upvotes

Most website footers are built around navigation, links and contact details. We wanted to experiment with something a little different.

This is a studio-inspired footer block with an interactive box-breathing experience built right into the layout.

A few details:

  • A visual 4-4-4-4 breathing cycle
  • Interactive breathing square with a countdown
  • One-minute cooldown with four rounds
  • Light and dark themes
  • Studio locations, class listings, membership and help sections

We’re making the component available for free on 21st.dev.

Component: https://21st.dev/@shadcnstore/components/box-breath-footer

You can also explore the live demo and customization options here: https://shadcnstore.com/blocks/marketing/footer-sections#footer-section-10

For transparency, we’re the team behind ShadcnStore.

Curious what you think: would you use an interactive element like this in a website footer?


r/reactjs • • 1d ago

News This Week In React #308: Next.js, Storybook, Security, RSC, INP, Hyper Elements, GTKX, RTK, Immer, Jotai | NitroUI, Expo Router, Fabric, RTL, DevTools, Zalando, Safe Areas, Metro, Agents | Effect, Vite, CSS, Node.js, tidy, Rolldown

Thumbnail
thisweekinreact.com
4 Upvotes

r/reactjs • • 1d ago

Built a set of spring-physics React UI primitives for AI agent workflows (tool timelines, approval gates, diff reviews); 3 are free via shadcn CLI

Thumbnail sks-agent-ux.vercel.app
0 Upvotes

I built these because most AI agent interfaces I was working on felt stiff compared to tools like Linear or Cursor, and I kept rebuilding the same streaming/tool-call/approval patterns from scratch.

Everything is built with React, Tailwind CSS, and Motion (spring physics, zero layout jitter, prefers-reduced-motion support) and distributed through a shadcn-compatible registry (@sks) so it works with npx shadcn add and shadcn mcp.

Free components (no key needed):

- thinking-shimmer — reasoning shimmer with live elapsed timer

- tool-call-pill — spring-morphed pill across pending, running, and settled states

- streaming-text — token-by-token fade-in with zero layout jitter

Pro kit (9 components): reasoning-accordion, agent-timeline, approval-gate, citation-hover-card, context-meter, artifact-split-pane, voice-waveform, prompt-command-bar, and diff-review-card.

Live interactive playground: https://sks-agent-ux.vercel.app

Happy to answer any questions about the spring configs, layout animations, or setting up a custom shadcn registry!


r/reactjs • • 1d ago

Show /r/reactjs NitroUI v2.0.0 is here!

0 Upvotes

Hey everyone!

I've been working on NitroUI, a minimal and modern React component library built with TypeScript and Tailwind CSS.

Today, I'm releasing v2.0.0 with several improvements:

- Improved Alert, Banner, and Toast designs.

- A new reusable component.

- Custom 404 Not Found page.

- 15 built-in themes, expanded from 3.

- Overall UI and styling improvements.

The goal is to provide developers with reusable components while keeping customization simple and flexible.

Documentation: https://ui.nitrobrain.dev

GitHub: https://github.com/NitroUI

npm: https://www.npmjs.com/package/@nitrobrain/ui

I'd appreciate feedback, suggestions, and honest criticism!


r/reactjs • • 2d ago

Discussion Learning React after work — rebuilding the same small project keeps teaching me more than new tutorials do

14 Upvotes

I'm in my third year of BCA and working in digital marketing, so I learn React in the evenings. Tutorials always make sense while I'm watching them, then I sit down to build something on my own and half of it falls out of my head. What actually helped was picking one small project and rebuilding it again from scratch — each time I notice something I misunderstood the last time, like when state should live in the parent or when a component is doing too much. Has anyone else learned this way, or did you get further by jumping to a new project every time?


r/reactjs • • 2d ago

Show /r/reactjs I built unfold-mdx: step-by-step tutorials where each click highlights what changed in the explanation and the code

2 Upvotes

Demo GIF is at the top of the README: https://github.com/Shakya47/unfold-mdx

When I read code tutorials, I spend half my attention diffing step 3 against step 2 in my head. So I built a small React component for MDX/React docs that does that part.

How it works: you write each step as a full snapshot (the whole explanation so far and the whole code so far). unfold-mdx diffs consecutive snapshots and, on every Next click, highlights the new or changed sentences and the new or changed code lines/tokens.

<Depth>
  <DepthLevel label="Check the cache">Look for the product in the cache.</DepthLevel>
  <DepthCode lang="js">{`const cached = await cache.get(id);`}</DepthCode>

  <DepthLevel label="Return on a hit">
    Look for the product in the cache. Return immediately if it is there.
  </DepthLevel>
  <DepthCode lang="js">{`const cached = await cache.get(id);
if (cached) return cached;`}</DepthCode>
</Depth>

What's in 0.1.0

  • Prose + code side by side or stacked, with a resizable divider
  • Optional Shiki syntax highlighting
  • Step-synced highlights on images, screenshots and Mermaid/SVG diagrams
  • Grid layouts with custom slots; build your own controls with useDepth()
  • Headless (data-* attributes) with an optional theme; SSR fallback and keyboard navigation
  • Ships llms.txt so an AI coding agent can write walkthroughs in the right format

Honest limitations: it's pre-1.0, so the API may still change. Prose has to be plain sentences (that's what gets diffed), and the Shiki adapter currently targets Shiki v1.

I'd love feedback, especially: would you use full snapshots like this, or would you rather write only the change for each step?


r/reactjs • • 2d ago

Show /r/reactjs I made React components that hide on your site like easter eggs: a pixel pet and a wish-granting star. https://gaurav-pndy.github.io/joypacket/

1 Upvotes

r/reactjs • • 2d ago

Create your own animated characters or start with one of 44 customizable avatars

Thumbnail
mien.hazem.design
1 Upvotes

I built Mien so you can design a character, give it expressions and animations, and use it in your app.

I just added four characters, including Hocus, a little witch hat. That brings the collection to 44 avatars, each with up to 62 moods you can mix and match.

Even with four more characters, the full collection is 41% smaller to download than the previous release. You can also pick just one avatar and the moods you want.

Try Mien Studio


r/reactjs • • 2d ago

Show /r/reactjs I built a sci-fi HUD video player for React

Thumbnail
astro.digitalgoat.space
0 Upvotes

I've been working on ASTRO, an open-source video player skin for React, built on Video.js v10.

The look is a game-style visor HUD: controls sit on curved rails at the edges and fade out while you watch. Under the hood I tried to keep it a normal, practical player: full keyboard support, ARIA labels, prefers-reduced-motion, and HLS with real quality switching.

A few things I had fun building:

  • Time Warp: → doesn't jump 10 s. It plays the next 10 s at 10× and lands without a loading pause.
  • Reverse Warp: ← plays the last 10 s backwards, using frames the player has already shown (requestVideoFrameCallback + OffscreenCanvas, with WebCodecs to fill gaps).
  • Mini player: a draggable corner window that keeps playing while you scroll.
  • Container queries: the layout follows the player's own size, not the viewport.

Usage is just:

tsx

<AstroPlayer media={{ id: 'intro', src: '/media/intro.m3u8' }} />

MIT licensed. Repo: [Astro-player] · Demo: [astro.digitalgoat.space]

I'd really like feedback on the API and on how it feels to use. What would stop you from putting it in a real project?


r/reactjs • • 3d ago

Needs Help How much coding do you actually need to know to build a small internal react app?

19 Upvotes

Say you work at a small accounting firm and want to build something to keep track of clients, documents and deadlines instead of having everything scattered across spreadsheets. If AI builds the React part and Supabase handles the database and logins what else would you actually need? The part that confuses me is how you make sure only the right people can access certain data. Is that something you can set up within the app or do you need to write a separate backend for it? Trying to understand how realistic this is for someone who isn't a developer.


r/reactjs • • 2d ago

Show /r/reactjs React-style Hooks outside React

Thumbnail
github.com
0 Upvotes

Repository: https://github.com/behavon/behavon

What I wanted to build

What I find interesting about React is not only its declarative approach to describing UI, but also the way it expresses state and behavior through Hooks.

You declare state inside a function, derive other values from that state, and synchronize with external systems when dependencies change. State persists across function evaluations, and you can abstract this logic into custom Hooks.

But does this programming model necessarily have to be tied to UI components?

Could we express stateful domain objects, services, asynchronous tasks, and simulations in the same way?

Behavon is a library that implements this approach.

Hooks without React

Behavon follows the public state semantics of React Hooks but does not share a runtime with React.

Instead of using useState, useReducer, useMemo, useCallback, and useEffect inside React components, you use them inside functions called Models.

While React components return JSX, Behavon Models return arbitrary values.

A Model is instantiated through createModel and re-evaluated whenever its state changes. Its lifecycle can be managed independently of whether any UI is mounted.

Since Behavon has no runtime dependency on React, it can run both in the browser and in Node.js.

Modeling not just state, but behavior

One aspect I consider particularly important in Behavon is how relationships between Models are expressed.

For this purpose, Behavon introduces Ports, Signals, and Slots, similar to the concepts found in Qt.

  • Port: A typed interface that a Model exposes to the outside world.
  • Signal: An externally callable command or an event delivered to other Models.
  • Slot: A receiving endpoint that responds to a Signal from another Model.
  • Snapshot: An observable value that a Model exposes to the outside world.

Signals and Slots can be connected using useConnect.

You can also use useModel to observe the return value of another Model and build a Model that depends on that value.

In other words, dependencies between values and connections between behaviors can be expressed separately.

Rather than requiring Models to know each other's internal implementations, this structure allows them to communicate through their exposed interfaces. The lifecycle of these connections is also managed by the runtime.

This makes it possible to compose independent Models into an application.

How does it integrate with React?

React is not the execution environment for Behavon. It is simply one of the external consumers of Models.

A Model publishes the necessary values as Snapshots, and React subscribes to them through useSyncExternalStore.

When a user clicks a button, the UI calls a Model's Signal. The Model handles the state and behavior, and React reads the updated Snapshot.

This allows application logic to be executed and tested without a UI.

React server-side rendering (SSR) and hydration are currently not supported.

Features for expressing more complex behavior

I also implemented several additional features for problems that would be cumbersome to express using conventional Hooks and Model connections alone.

  • useFuture: Manages the progress and cancellation of asynchronous tasks. Tasks can be executed sequentially, or previous tasks can be cancelled in favor of the latest one.
  • useResource: Manages the creation, closure, cancellation, and operations of external resources with their own lifecycles, such as WebSockets and database sessions.
  • transaction: Groups state changes across multiple Models into a single transaction that can be committed or rolled back.
  • useMachine: Defines and executes state transitions through rewrite rules.

In particular, useMachine is not limited to conventional finite state machines.

It supports structured terms, pattern matching, conditional rules, multisets, and rewriting of nested terms. Rules themselves can also be added, removed, or replaced at runtime.

This makes it possible to express computations within Models ranging from simple traffic lights and vending machines to Boolean expression simplification, lambda calculus, and forward-chaining inference.

What can you actually build with it?

Beyond a simple counter, the repository contains examples covering a variety of use cases:

  • A to-do application with separate domain and presenter layers
  • A team task management system composed of cooperating Models
  • Search request cancellation and sequential file uploads
  • WebSocket-based chat and database session management
  • Bank transfers using transactions across multiple accounts
  • A Node.js HTTP API server that runs without React
  • A stock exchange simulation composed of independent Models representing companies, traders, portfolios, and an exchange
  • Finite state machines, term rewriting, logical inference, and runtime rule modification

Examples involving interactions between multiple Models, such as the stock exchange simulation, illustrate that Behavon is not limited to storing UI state.

All examples use only the public API of the distributed package and include tests that verify their behavior.

Behavon also provides a dedicated ESLint plugin that checks Hook usage rules, dependency arrays, and the purity of Model evaluation.

Closing thoughts

What I am exploring with Behavon is the idea of separating the Hook programming model from the UI layer and using it to compose independent units of state and behavior.

I don't think every state management problem needs Behavon. Existing, simpler approaches are perfectly sufficient for simpler problems.

However, for applications in which multiple states and behaviors interact, and their respective lifecycles and interfaces need to be managed, I think this programming model could be another viable option.

You can install it with npm install behavon.

Repository: https://github.com/behavon/behavon


r/reactjs • • 3d ago

News One Year After React2Shell Patch, Thousands Of Servers Are Reported To Have Had Keys Stolen

6 Upvotes

CloudSEK has published a report on November 30, detailing a campaign they are calling React2Keys. Tens of thousands of credentials from thousands of hosts, per CloudSEK.

They got the keys, tested them, used them and charged victims for using AI/Cloud under their stolen keys. They also added new SSH keys to the servers without the server owner's permission.

Upgrade to 19.0.1, 19.1.2, 19.2.1+, or patched Next.js version. Take all the secrets that were stored on the server, cycle them through. Revoke the old keys. Check the authorized_keys of your accounts, and toss any SSH key which you can't associate with a person or system. You should look at the November bills for the accounts that you can access with those keys and see if there is any usage you don't recognize.

Also reported this week by SecurityWeek and CSO Online. The fact the flaw exists, the fixes and the CISA KEV listing are all public knowledge. So the "patch & rotate" part is worth doing even just based on that.

https://hol.org/blog/cve-2025-55182-react2shell-react2keys-campaign


r/reactjs • • 3d ago

Show /r/reactjs Built Springr, a library o 60+ animated React components - looking for feedback

Thumbnail
springr.dev
0 Upvotes

Hi! I would like to share with you Springr, a project I’ve been working on over the last few months.
It’s a curated collection of animated React components, focus on flexibility, accessibility and motion.I set out to answer this question: "What if a component were designed with emphasis on motion, while remaining fully accessible and customizable like shadcn/ui?". That’s the core question that drives my work. Here is what you can find right now:

  • 60+ components
  • Some hooks I found useful so far
  • A set of tools (like UUID generators, etc) made sooo easy to use, without ads and totally private and local

Any technical or non technical feedback is super welcome and appreciated, thank you!


r/reactjs • • 2d ago

Show /r/reactjs I let AI agents write my app's React UI, with strict rules. React Doctor gave it 100/100

Thumbnail
thermi.app
0 Upvotes

I'm building thermi, a small always-on-top hardware monitor for Windows and Linux (temps, fans, FPS). The overlay is C#, but the settings app is React + Fluent UI, running in WebView2 on Windows and WebKitGTK on Linux: about 14k lines and 70 components. Here it is in action: https://github.com/claudiopi/thermi/blob/main/docs/images/gestures-settings.gif

AI agents wrote most of it, so I set a few rules early on. React holds no business logic: every decision comes from C# through a typed bridge. The tests run against recorded answers from that bridge. And any warning fails the build.

I was curious how it would hold up, so I ran React Doctor: 100/100, zero issues. Pretty happy with that, and always keen to learn, so if you spot something worth improving, I'm all ears.

Repo: https://github.com/claudiopi/thermi


r/reactjs • • 3d ago

Theo gg's t3code, went multilingual. I measured the cost

0 Upvotes

Last week everyone was digging into T3 Code's telemetry, the data leaving your machine. I got curious about the other direction: the data coming in.

On November 12, T3 Code (Theo's GG open-source app for coding agents) went multilingual. Two weeks later: 10 languages, 10,298 strings. Its AGENTS.md lists "Performance without compromise" among the things the project "can never compromise on". Theo also left a note in that same file: "measure twice, cut once".

So I measured. I built the production bundles (web, desktop, mobile) and pulled them apart.

A few things that stood out:

- A French user downloads 370 KB of gzipped i18n before the first frame. The app waits for the whole catalog before it renders anything

- About 63% of that catalog is text for screens they haven't opened yet, also full of orphalan keys

- Every string ships twice: English + French via the catalog

- In two weeks, the team wrote three patches to the library's compiled code to stop it from hashing and parsing strings on every render.

The worst, the team did measure the cost when they adopted the library. The catch: they measured once, on a settings page with a 3.6 kB catalog. Then the whole app got translated, and nobody measured again.

And it's not just the bundle. It's also rendering and performance issue. As well as DX.

Disclosure: I'm part of that competing i18n library, so read this as a competitive take, not a neutral review. (Every number links to a commit or a source, and if I got something wrong I'd genuinely like to know.)

Full article : https://intlayer.org/blog/t3code-i18n-reverse-engineered


r/reactjs • • 3d ago

Show /r/reactjs I built Lexion, an MIT-licensed headless rich text editor on ProseMirror with adapters for 10 frameworks

Thumbnail
reddit.com
0 Upvotes

r/reactjs • • 4d ago

Discussion Hot take: for most small React projects, useState + lifting state up is enough — I only reached for a state library when props got silly

0 Upvotes

Been learning React properly over the last few months while working a full-time marketing job and studying BCA, so most of my projects are small — a portfolio site, a couple of client landing pages. Early on I thought I needed Redux for everything because every tutorial mentioned it. In practice, useState and passing props down got me through all of it. The one time I actually felt the pain was a multi-step form where the same data was needed three components deep and I was passing props through components that didn't care about them. That's when I tried Zustand and it clicked. Curious — what was the moment you knew you actually needed a state library, and which one did you pick? Or do you still avoid them?


r/reactjs • • 4d ago

Resource How I load fonts for a first-screen hero in React 19 without a flash (preconnect + critical/late split)

Thumbnail
motionuikit.io
0 Upvotes

I ran into this while building a hero with a canvas animation. The headline font has to be there on the first paint or the whole screen visibly jumps, but loading every font up front slows the page. What worked for me was splitting fonts into two groups.

  1. Critical fonts: the ones the first screen can’t look right without (headline and UI). I render these as a stylesheet link with a precedence prop, so React treats the stylesheet specially.
  2. Late fonts: decorative ones that only appear after interaction or in small labels. I load these after mount, so they never block the first paint.
import { preconnect } from 'react-dom'
import { LateFonts } from './late-fonts'

const CRITICAL_FONTS =
  'https://fonts.googleapis.com/css2?family=Archivo:wght@800&display=swap'
const LATE_FONTS =
  'https://fonts.googleapis.com/css2?family=Martian+Mono:wght@400&display=swap'

export default function Hero() {
  // React places these hints in <head>, ahead of the stylesheet
  preconnect('https://fonts.googleapis.com')
  preconnect('https://fonts.gstatic.com', { crossOrigin: 'anonymous' })

  return (
    <>
      <link rel="stylesheet" href={CRITICAL_FONTS} precedence="default" />
      <LateFonts href={LATE_FONTS} />
      <main>{/* hero content */}</main>
    </>
  )
}



'use client'
import { useEffect } from 'react'

export function LateFonts({ href }: { href: string }) {
  useEffect(() => {
    const link = document.createElement('link')
    link.rel = 'stylesheet'
    link.href = href
    document.head.appendChild(link)
    return () => link.remove()
  }, [href])
  return null
}

Things to watch:

  • precedence is what makes React handle the stylesheet specially. Without it, you get a plain <link>.
  • A component that renders a stylesheet link with precedence suspends until the stylesheet loads, so decide where your Suspense boundary sits.
  • preconnect only helps if you call it while rendering.
  • I left out the late fonts’ fallback styling. If a late font changes layout, you may still see a small shift.

Curious how others split font loading for first-screen sections, or whether you just self-host everything.


r/reactjs • • 4d ago

Resource ReactJS certificate

0 Upvotes

Hi ,

Has anyone given the certificates.dev reactjs certificate or any other . How is the exam pattern and difficulty level.

Is this a proctored exam like Anthropic Claude.

Also which course I can refer to prepare for exam.

FYI: My company has asked me to do the certification as i am new React , having 7yrs experience in Angular.