r/reactjs • • Sep 10 '26

News React 19.3

Thumbnail
react.dev
178 Upvotes

r/reactjs • • 32m ago

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

1 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 • • 1h 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 • • 1h ago

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

Thumbnail
astro.digitalgoat.space
1 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 • • 1d ago

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

46 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 • • 12h 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 • • 11h ago

Show /r/reactjs Made the coolest website ever!

Thumbnail
pixels.vedasdixit.com
0 Upvotes

So, around two years ago, I made vedasdixitdotcom, and tbh, I never really liked it that much.

I've always had this idea in my head of making a website where everything is represented using chunky pixels, and that's what I've been working on for the past three weeks.

The most time consuming part, and honestly my favourite, was the train animation in the About section. Man, that took hours of trial and error on my iPad 0_0

There are quite a few easter eggs too. Try clicking on the signboard in dino land, or try killing a dino with a meteor and see other dino reactions >.< . Or idk, just explore ig :)

Anyway, I made this with a lot of love, and I really hope you guys like it!

*update: I wrote coolest but you guys at this communty made cooler stuff so lol


r/reactjs • • 1d ago

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

5 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 • • 23h 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 • • 15h 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 • • 1d 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 • • 1d 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 • • 2d 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 • • 2d 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 • • 2d 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.


r/reactjs • • 3d ago

Resource I packaged a CLI of "anti-AI-slop" rules for React Three Fiber shaders, Framer Motion springs, and Lenis/GSAP scroll (npx kinetic-skills)

Thumbnail
github.com
2 Upvotes

r/reactjs • • 4d ago

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

10 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 • • 3d ago

Discussion Is a prop that passes through 3 components that never read it already prop drilling?

0 Upvotes

I maintain a structure linter and had to turn "prop drilling" into a number, which turned out harder than writing the check.

What I settled on: a prop counts as drilled when 3 or more components in a row only declare it and hand it to a child. Reading it once, even in a condition, takes the component out of the chain. So does binding it to a child's event (`onClick={onSave}`), and so does spreading `...props`.

The case that convinced me the rule is worth having, from a well known open source app: `mountUnavailableModelTooltip` goes ArtifactPanel -> SideTaskPanel -> SideTaskSession -> ChatPane -> ChatEditor -> ToolbarPopover -> ToolbarDropdownRow. Seven components carry it, none of them use it.

To check the threshold I ran it on 105 open source TypeScript projects. 58 had at least one such chain. Out of 881 drilled props, 658 were exactly 3 deep, so the threshold decides almost everything: at 4 the rule would report a quarter of that.

What I did not expect is that context was rarely the fix. Usually the top component could render the bottom one itself and pass it down as `children`, and the middle ones would never hear about the value.

So, people who review React code for a living: is 3 where it starts to bother you, or do you only care at 4+?

The rule is part of unknot, a linter I wrote: https://github.com/PatternVoid/unknot


r/reactjs • • 5d ago

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

26 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 • • 4d ago

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

Thumbnail
github.com
4 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 • • 5d ago

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

Thumbnail
mien.hazem.design
36 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 • • 6d 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 • • 6d 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 • • 5d 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?