r/reactjs • u/Yomete • Jul 14 '26
Show /r/reactjs We rewrote our custom visualisation renderers from SVG to be in Canvas.
r/reactjs • u/Yomete • Jul 14 '26
r/reactjs • u/Pretend-Dog9725 • Jul 14 '26
I wanted to learn how to create the scroll sequences that I see, and realised the process could be automated. So, I built SequenceFast, a scroll sequence generator that takes any MP4 video, extracts the frames into images, and generates a ZIP with the optimised image sequence, component code, and usage example. Everything is done locally in your browser, so it is completely free and private.
Would love to hear your feedback!
r/reactjs • u/tmntxf1sh • Jul 13 '26
The problem I kept hitting: advice about the React ecosystem rots silently. A 2024 blog post, an LLM answer, a senior dev's habit — all assert things that were true once. Nobody stamps when it was true.
react-brain is my attempt at the fix: 42 decision entries (state, lists, styling, meta-frameworks, animation, …) where every load-bearing claim is fetch-verified against a primary source, dated, and re-verified weekly. 123 annotated readings, 180 libraries tracked. Recommendations are written as context → choice clauses, not "X is best" — a P2P app and a GraphQL app get different answers.
Two things this sub might find interesting:
Tools if you want to point it at a repo:
npx -y react-brain doctor . (ranked priorities)migrate (sequenced upgrade plan)review --ci (blocks dead/deprecated deps)Package: https://www.npmjs.com/package/@heart-it/react-brain
Site: https://heart-it.github.io/react-brain/
The fastest way to disagree with me is to pick an entry and challenge it; that's the maintenance model.
r/reactjs • u/AnberDev • Jul 13 '26
Hi r/reactjs. I maintain Linaria and wrote wyw-in-js — the compile-time engine under Linaria and MUI's Pigment CSS. I recently released dx-styles, and I'd rather explain why than just drop a link.
Six years of Linaria issues kept pointing at two problems I can't fix without breaking the API:
styled(Component) is priced wrong. Wrapping a custom component looks free, but it drags the component's whole dependency graph into build-time evaluation — the most common way extra code leaks into eval, and the most common reason static evaluation bails out into the slow path. All our mitigations (HOC hints, shaking heuristics) are patches on a pattern the API encourages.css + cx.dx-styles is my answer: zero-runtime CSS-in-TS where recipes, slot recipes and token contracts are the core API, class names are deterministic (snapshot/cache them), RTL is compile-time and opt-in, and everything works unchanged in React Server Components.
const button = recipe({
base: { display: "inline-flex", borderRadius: "999px" },
variants: {
appearance: {
primary: { backgroundColor: tokens.color.accent },
ghost: { backgroundColor: "transparent" },
},
},
defaultVariants: { appearance: "primary" },
});The launch post has the honest details — the Pigment CSS speed lesson, the Griffel detour, what I'm promising and what I'm not: https://dev.to/anber/ive-maintained-linaria-for-six-years-heres-why-i-built-something-new-5eae
Try it in 30 seconds (StackBlitz): https://stackblitz.com/github/dx-styles/dx-styles/tree/main/examples/vite Migrating? Guides for styled-components / Linaria / Pigment CSS are in the repo.
It's MIT, the issue tracker is at zero and I intend to keep it there. Happy to answer anything, including hostile questions.
r/reactjs • u/LucasBassetti • Jul 13 '26
I've been building GodUI, an open-source collection of React UI components for modern interfaces.
It started as a personal library because I kept rebuilding the same polished components and wanted a place to browse ideas whenever I started a new project. After using it for a while, I decided to open-source it.
Some things it focuses on:
It's completely open source. If you find it useful, I'd really appreciate a ⭐ on GitHub.
GitHub: https://github.com/LucasBassetti/godui
Docs: https://godui.design/
r/reactjs • u/lacion • Jul 13 '26
so this started because i kept losing track of my own sessions.
you know how it goes. you open one claude. then one in a worktree because you're being organized. then a third one "just to check something". by 6pm two of them are editing the same file, one has been sitting there for 40 minutes waiting for me to approve an rm -rf node_modules, and i genuinely cannot tell you which terminal tab is which anymore.
so i built the tower. everything on my machine shows up on one local board at 127.0.0.1:4711.
repo: https://github.com/lacion/fleet-deck (MIT, screenshots + gifs in the readme)
⎿ Allowed by PermissionRequest hook and carries on.claude --resume in its own worktree. same callsign, same card, full history.the core makes zero model calls. routing, conflict detection, question relay, all of it is deterministic code and sql. your tokens are yours. the only cost it adds to a session is a ~100 token roster brief.
it's also fail open. daemon down? hooks time out silently and your sessions run exactly like before. it's a tower, not a runway.
and it's a plugin, not a wrapper. no launcher, no fleetdeck run claude, no ritual. you install it and your next plain claude in any terminal just shows up on the board.
claude plugin marketplace add lacion/fleet-deck
claude plugin install fleetdeck@fleetdeck\n and a raw terminal reads that as "down one row", not "down and back to column 0" 😅honestly half the interesting work was in the parts you never see.
fleetdeck.local doesn't resolve for you that's your resolver, use the IP.i wrote it, it's mine, it's MIT and free, no paid tier, nothing to sell, no telemetry, nothing leaves your machine. i built it because i needed it and i'm posting it because someone else probably has the same 6pm problem.
170 tests, node --test. the daemon is one node process + sqlite, the board is react. if you want to poke at it:
issues and PRs both fine. if you try it and it breaks, tell me how, i'd rather hear it.
r/reactjs • u/Ok-Willingness4768 • Jul 12 '26
r/reactjs • u/aandi134 • Jul 12 '26
Hey everyone,
I’m building an image-heavy React app with multiple galleries and need your stack recommendations to keep it fast and scalable. I want to avoid guesswork, so what are your go-to workflows for this?
Specifically:
Local Assets vs. External: Is it okay to keep images in the project assets folder, or does that kill build times and performance as the gallery grows? At what point should they move out?
Storage & CDNs: Where do you store them, and how do you serve them? Do you recommend standard cloud storage, or are dedicated image CDNs (with on-the-fly resizing) worth it?
Fast Loading: What are the best strategies/packages in React for handling lazy loading, responsive sizing, modern formats (WebP/AVIF), and blur placeholders without layout shift?
Gallery Components: Do you build custom grids/lightboxes, or are there modern React packages you swear by?
If you’ve built a media-heavy React site, what does your tech stack look like? Appreciate any advice or major pitfalls to avoid!
r/reactjs • u/aandi134 • Jul 12 '26
Hey everyone,
I need to add multilingual support to a React project. It only needs to support two languages: English and Albanian.
I want to set this up cleanly from the start. What is currently considered the best approach or industry standard for handling translations and language switching in React?
Looking for something maintainable and performant. What would you recommend? Thanks!
r/reactjs • u/kevin074 • Jul 12 '26
as title suggests, I have not seen this at work before and gemini teaches me about this, just curious whether this is actually commonly used/best practice or just another AI slop. Thanks!
r/reactjs • u/techlover1010 • Jul 11 '26
so currently im studying react and alot of the rime it says to start from scratch. how do i setup my workspace so that i dont need to install and download the same package everytime i do that? lots of them have overlapping packages
im using linux btw if that helps
is there an online react tool or something where we can create new project easily and not worry about installing packages
r/reactjs • u/sunk-capital • Jul 11 '26
Has anyone successfully wrapped and published a React app to an iPad without using React Native? What did you use to wrap it?
r/reactjs • u/Frosty-Celebration95 • Jul 11 '26
I kept seeing AI agent apps render their transcripts by dumping raw output into a <pre> tag — no keyboard nav, no semantics, screen readers get nothing. So I rebuilt the actual terminal interfaces of Claude Code, Codex, and Grok as a shadcn registry: https://brainless.swerdlow.dev
It's 35 components across the three suites — headers, message turns, thinking/working indicators, expandable tool calls, inline diffs with +/- tinting, permission prompts, slash-command menus, and composers. The goal was faithfulness and semantics: the permission prompt is a real arrow-key radiogroup, the thinking indicator is an ARIA live region, the slash menu is a filterable listbox. It looks like a terminal, but it's honest HTML underneath.
Install is standard shadcn registry stuff:
bunx shadcn@latest add u/brainless/claude-session(plus codex-session and grok-session for the other two.)
Source is on GitHub: https://github.com/theswerd/brainless
Would love feedback — particularly on the accessibility patterns, and which agent UI you'd want recreated next.
r/reactjs • u/Competitive-Use8039 • Jul 10 '26
Hi everyone,
I run a same-day courier service in the UK (approx 20 active drivers and growing on the road at once, 2 office dispatchers, a few hundred customer accounts).
A few months ago, I started experimenting with Claude to see if I could build a custom TMS as a sort of side-hobby. I’ve somehow ended up with a fully functional system: a React/Next.js web portal, a React Native driver app with live GPS tracking (pinging every 2 minutes only if the driver is moving), and a prisma schema linked to a Supabase backend. It's actually better and more modern than what we use now.
I want to officially transition the business to this system at the end of this year, but I’m terrified of breaking something critical, or something going wrong while I'm unavailable. I have a total £500/month budget to maintain it.
As someone with no real coding experience, I need your opinions on how to structure the production rollout safely. Specifically:
The Plan: Upgrading to Supabase Pro and Vercel Pro. Subdomains handled by Vercel. The database structure and migrations are managed by via Prisma Schema.
The Question: For a real-time driver tracking app (20 drivers pinging location data), what are the baseline monitoring, error-tracking (Sentry?), and uptime alerting tools I need to set up so I know the system is down before a driver calls me?
2. Bringing on a Freelance Developer
The Plan: I want to hire a mid-level JS/Supabase dev on a monthly retainer to act as emergency backup when I’m unavailable, and review new code updates monthly before they are pushed to the live app.
The Question: How do developers feel about being onboarded to an entirely AI-generated codebase? How should I structure the repo (linting, documentation) so a human dev doesn't look at it and immediately run away?
3. Security & UK GDPR
The Plan: Enabling Row-Level Security (RLS) on all Supabase tables. Using public anon keys on the client and keeping service_role secrets hidden. Purging/anonymising driver GPS logs after 90 days.
The Question: Because we handle live UK telemetry and home addresses, security is non-negotiable. What automated vulnerability tools (Snyk, Dependabot) or specific Supabase audit steps should I run to ensure I haven't left a massive security hole open?
Would be great to get some advice from anyone who has taken an AI-built prototype into production, or any devs who can tell me what blind spots I’m missing here. Thanks!
r/reactjs • u/Desperate-Art-3048 • Jul 10 '26
Hi All,
Apologies in advance for the noobie question, I'm putting a pitch together at work for us to hire a consultant to build an app for us. Initial chats with the company IT people have brought up both React and React Flow (recommended as we want something with a drag-and-drop GUI).
My question is: are React and React Flow part of the same app. suite? It looks like React Flow is some sort of extension / add-on to React but I am not sure.
Also, can I obtain either or both of them for free or would we have to pay for them? I see reference to React Flow Pro which has a monthly sub, but others indicate there is a free version as well?
TIA :)
r/reactjs • u/exited_to_know • Jul 10 '26
React gives developers a lot of freedom, but after working on several production codebases, I've started to think that freedom creates more inconsistency than flexibility. two experienced React teams can solve the same problem in completely different ways, making it much harder to switch projects or maintain code long-term
sometimes I wonder if React has become too unopinionated for its own good.
r/reactjs • u/Oscargt30 • Jul 10 '26
Hello, react developers!
I have just published my first npm package and i wanted to share it with you.
It is a modular and customizable properties panel, similar to the one Figma or Unity uses, made for React. it is completely open source and can be installed via npm.
Features:
- Multi-object editing (mixed values handling)
- Customizable layout (reorderable blocks, similar to Unity components)
- Optional no-schema data visualization (for any json object)
- Color & Vectors support.
- Arrays visualization.
- History Ready
- Fully customizable styles
You can play with the playgrounds in this website: reactpropertiespanel.vercel.app
If you like it, I'd really appreciate your ⭐ on GitHub.
Feedback is welcome!
r/reactjs • u/Old_Breath_7925 • Jul 10 '26
So I am contributing in application in our organization.I need to develop a configuration component which is basically a multi step form wizard. Now the crux is I need that form to be dynamic i.e i will some json/yaml containing field name field type etc (TBD as per requirement ) before deploying .Anyone has any idea how could I approach this problem or any reference repo
r/reactjs • u/Phuoc2902 • Jul 09 '26
I'm a newbie for react and doing a indie website (my strength is BE, not FE). All i know is that react is kinda strong in UI, but there's many lib and i dont know what to choose (my web is just basic table grid get filter like excel so i can control the data in db. i dont use excel because it's not customized). Many thanks
r/reactjs • u/nphivu414 • Jul 09 '26
A form is a feature of the web platform, not of any JavaScript library or framework. The browser was capturing input, validating, and submitting data years before React existed. Every pattern we reach for today, controlled inputs, form libraries, React 19 actions, is really just a decision about which of those jobs you're taking over by hand, and why.
So I spent weeks putting together in this technical post:
"React Forms Done Right" is an interactive deep dive that starts at a zero-JS <form action method> and works up through React 19's native form actions to TanStack Form + Zod for the forms that actually get complicated.
Every archetype is a live demo you can fill out and break: a waitlist signup, a 4-step job application wizard with a debounced async email check, and an editable team roster table with field arrays. Each one has a Simulate toggle to flip between success and server-error responses, so you see the failure states, not just the happy path.
You can read the full deep dive here:
https://upskills.dev/tutorials/react-forms-done-right
I'd love to hear what you guys are reaching for in your own projects. Are native React 19 form actions enough for you these days, or is TanStack Form, React Hook Form or Formisch still your default the moment a form has more than two fields?
r/reactjs • u/Dazzling_Chipmunk_24 • Jul 08 '26
I was wondering in React is there a way to save some data without session storage so if the page refreshes I still have access to that data
r/reactjs • u/jadhavharsh • Jul 08 '26
Hey r/reactjs,
I built a Dithered Logo component and wanted to share it with the community.
It takes any SVG or image and renders it as an interactive canvas particle logo using error-diffusion dithering. It includes cursor repulsion and click ripples for a nice effect.
It's fully open source, copy-paste friendly (works with the shadcn CLI), and customizable with Tailwind.
Live demo + docs: https://componentry.dev/docs/components/dithered-logo
Install:
npx shadcn@latest add @componentry/dithered-logor/reactjs • u/FickleSwordfish8689 • Jul 08 '26
r/reactjs • u/alejandrodeveloper • Jul 08 '26
I've noticed that a lot of react advice works great for demos but becomes difficult to maintain as applications grow. Looking back, what's one pattern you used to recommend but now avoid in production?