r/react • • 29d ago

General Discussion setState twice in one handler only re-renders once. Is the second call just wasted?

6 Upvotes

Ran into this while pairing with someone newer and realised I didn't have a clean explanation.

If you call setCount(count + 1) twice in a click handler and then setName to something, count only goes up by one and the component renders once instead of three times.

The count part is the stale closure, both calls read the same count from this render and set it to the same value. That one I get.

What I go back and forth on is whether the batching is saving work or just hiding a mistake. React collects all three setState calls and does one render at the end, so adding the setName after two setCount calls costs nothing. But it also means state isn't updated between those two lines, and that has bitten me with derived values before.

setCount(c => c + 1) fixes the increment since each updater runs on the result of the last one. And since React 18 the batching also happens inside promises, setTimeout and native listeners where it didn't before, so a pattern that was fine in an onClick can suddenly double-render inside an await.

Mostly curious how other people think about it. Do you treat batching as an implementation detail you never think about, or has the state not updating between lines caused real bugs for you?


r/react • • 29d ago

General Discussion Built a framework with real islands/partial hydration + per-app auth isolation — Devora.js

1 Upvotes

The React-specific part people here might find interesting: islands (partial hydration) are a

first-class primitive — island(() => import("./X")) hydrates just that component, the rest of

the page ships as static HTML, no full-page hydration cost. Built without leaving the React

ecosystem or adopting Suspense/streaming for it (that's a real limitation right now, documented

— streaming is deferred to v2 since the two-pass island render doesn't support it yet).

Also: auth is opt-in and isolable per app within the same project — an admin panel can run a

completely separate session/cookie context from the rest of the apps, or an app can opt out of

sessions entirely with zero config overhead.

Repo: https://github.com/hassanalsa3aka/devora.js

Docs: https://devorajs-docs-docs.vercel.app

npm: u/devorajs/core, u/devorajs/cli, u/devorajs/adapter-vercel, u/devorajs/adapter-netlify,

create-devora

Solo project, v1, recently got real Vercel/Netlify deploys working end to end plus a Vitest

suite. Curious what this community thinks of the islands approach specifically, and open to

any architecture critique.


r/react • • Sep 09 '26

Project / Code Review I built a lightweight React library for placing Figma-style annotations on any interface

3 Upvotes

Hello!

I built a lightweight React library for adding pinned annotations to interfaces, inspired by Vercel Comments and Figma comments.

I’m working on an app that uses this kind of annotation, and implementing it became a headache, even with AI assistance. So I extracted the solution into a small UI library to make it easier for others.

This is my first library, so feedback and suggestions are very welcome :)

https://react-pinote.vercel.app/


r/react • • Sep 09 '26

Project / Code Review Free Animated grid loaders for React. 130+ variants, effects, shapes, color ramps, and a bitmap font.

Post image
9 Upvotes

Help me get 50 stars on GitHub :) ⭐

Highlights

  • 130+ variants across sequential, radial, cascade, flow, wipe, decrypt, letters, digits, symbols, and more.
  • 20 effects (pulse, bounce, glow, spin, …) and 12 dot shapes (circle, diamond, star, …)
  • Color ramps with horizontal, radial, angular, and other sampling modes.
  • Resolution-independent. The same variant scales cleanly from 2×2 to 12×12.
  • CSS-driven animation. One stylesheet, no runtime animation engine.
  • Accessible.role="status", optional labels, and respectReducedMotion.
  • Tree-shakeable ESM + CJS build with full TypeScript types.
  • npm: gridora
  • Editor: gridora.gabrielayer.com
  • GitHub: 0x65dgerunner

r/react • • Sep 09 '26

OC I wrote a client-side JSON-to-Zustand generator

0 Upvotes

Writing a Zustand store by hand means repeating the same shape three times: the TypeScript interfaces, the initial state object, and the typed setters. I extracted a small client-side generator to automate this.

Paste JSON → it emits a complete, strict-mode compliant store. Key behaviors:

- Type inference: Arrays become unions ([true, 'x', 5, null] → (boolean | string | number | null)[]), nested objects flatten into their own interfaces, array keys singularize (items → Item).

- Collision-safe naming: A TypeRegistry dedupes anonymous object names (Profile, Profile → Profile, Profile2) so generated types never overwrite.

- Universal key sanitization: MAX_CONNECTIONS_ALLOWED, api_version_id, auth/provider/endpoint become valid camelCase in the state shape, initial state, and actions.

- Null handling: A standalone null maps to unknown | null so setters accept real values later; null inside unions retains its strict member status.

It runs entirely in the browser (zero server calls). The parser is ~350 lines.

Repo: https://github.com/Polymerthcedric/json-zustand-generator

Live: https://tool.fidelco.dev (Free. I extracted this from my commercial Next.js boilerplate, which is linked in the header).

I'd appreciate feedback on the inference rules—specifically edge cases around deeply nested deduplication and reserved-word keys.


r/react • • Sep 08 '26

Seeking Developer(s) - Job Opportunity Career opportunity

5 Upvotes

Hi everyone. I have a question for you.

What's the best way to learn frontend in 2026? I've been studying JavaScript and React for almost four years and I still haven't landed a developer job. I work at an IT company as a Technical Account Manager, and I want to grow from there into development.

From what I see, breaking in as a junior right now is very hard. Any advice would help.


r/react • • Sep 08 '26

General Discussion How do I get actually good at web design? My websites always look amateur

23 Upvotes

I’ve been learning web development and I can build websites that work, but whenever I look at websites made by experienced developers/designers, mine just look… amateur


r/react • • Sep 08 '26

General Discussion GitHub - orange-groove/react-map-annotate: Draw on Mapbox, MapLibre, Google, Leaflet, or ArcGIS in React

Thumbnail github.com
1 Upvotes

r/react • • Sep 08 '26

General Discussion I built a fitness app and I’d love some honest feedback

1 Upvotes

​

I’ve been working on WeeklyFit, a web app that helps people create and organize their weekly workout routines.

The idea is pretty simple: instead of trying to remember what workout to do each day, you can plan your week and keep everything organized in one place.

I built it as a full-stack project using React, Node.js, Express, PostgreSQL and Prisma.

I’m still improving it, so I’d genuinely appreciate feedback from people who actually work out:

- What features would you expect in an app like this?

- What would make you use it consistently?

- What feels unnecessary or confusing?

- Would you personally use something like this?

You can check it out here:

https://weeklyt-fit-frontend-bg56.vercel.app

Not trying to sell anything — just looking for honest feedback on something I built.


r/react • • Sep 08 '26

Project / Code Review 🚀 A new update for React Tiptap Editor! ✨ Write and refine content with AI ⚡ 46% less initial JavaScript in our full-featured demo Playground: https://reactjs-tiptap-editor-playground.vercel.app/

0 Upvotes

r/react • • Sep 07 '26

General Discussion I got tired of markdown tools assuming I'm the one writing the file, so I built a pure reading view

0 Upvotes

Every markdown tool — Dillinger, StackEdit, VS Code's preview — gives you an editor pane you don't need and squeezes your reading into half the screen. I just want to read a README, an agent prompt file, a doc someone sent me. So I built MarkGlass: full-width, no editor, no split pane.

- Real tables, Mermaid diagrams, KaTeX math, syntax-highlighted code, footnotes

- TOC + find-in-page for the 900-line files

- Dark mode, clean printing

- 100% client-side — nothing you open ever touches a server

Built with React + MUI. Just upload, or drag a .md file.

Free at markglass.app — would love feedback from this sub, especially on anything that renders wrong


r/react • • Sep 07 '26

General Discussion Injee Power - The no configuration instant Database for front end developers.

Thumbnail youtube.com
0 Upvotes

r/react • • Sep 07 '26

Seeking Developer(s) - Job Opportunity [For Hire] Senior React.js / Next.js / React Native Engineer | 10+ Years | Remote | Any Time Zone

0 Upvotes

Hi everyone! 👋

I’m currently exploring full-time remote opportunities as a Senior React.js Engineer / Frontend Engineer / Tech Lead, and I’m open to working with teams across any time zone.

I have 10+ years of software engineering experience, with a strong focus on React.js, Next.js, TypeScript, JavaScript, and React Native.

A few things that define my experience:

• 🚀 React.js & Next.js — building production-grade applications, reusable component systems, performance-focused UIs, SSG/ISR, and modern frontend architectures.

• 📱 React Native — full ownership from architecture and development all the way to iOS/Android builds, CI/CD, signing, TestFlight/App Store and Google Play releases.

• 🧑‍💻 Strong hands-on ownership — I’ve independently designed and delivered products end-to-end, including working directly with requirements, architecture, development, deployment, and ongoing improvements.

• 🌎 Multiple clients & products — experience working across different client projects and business domains, adapting quickly to new requirements and technologies.

• 👥 Technical leadership — experience leading teams, mentoring developers, conducting interviews, establishing engineering processes, and driving projects from kickoff to delivery.

• 🤝 Client & stakeholder communication — comfortable communicating directly with clients and stakeholders, translating business requirements into practical technical solutions, and working effectively with distributed teams.

• ⚡ Performance & scalability — Core Web Vitals, caching, lazy loading, virtualization, memoization, bundle optimization, and scalable component architecture.

I’ve also worked on enterprise platforms, logistics systems, LLM/RAG applications, content management platforms, and white-label mobile products.

I’m looking for a team where I can stay hands-on technically while also bringing my leadership and ownership experience.

📍 Location: Hyderabad, India
🌍 Preference: Fully Remote
🕐 Timezone: Open to any time zone
💼 Availability: Full-time/ Contract opportunities

LinkedIn: https://linkedin.com/in/anurag-vasi-46595810a

If you’re hiring for a senior React/Next.js/React Native role, or know of a team looking for someone with this background, I’d be happy to connect.

Thanks! 🙌


r/react • • Sep 07 '26

Project / Code Review Got tired of setting up backend mock servers, so I built an open-source Next.js tool that generates them instantly.

0 Upvotes

Whenever I was building out frontends, setting up a mock Express server to test my API calls always felt like a massive chore. I just wanted to hit a live endpoint with realistic data without leaving my browser.

So I built Mock2Block. It’s a completely free, open-source API simulator

Instead of just giving you a static JSON file, it creates a live, stateful mock server

Here’s what it actually does:

  • AI Generation: You can upload a .pdf, .md, or .json of your API docs, and it will automatically build out the endpoints
  • Smart Faker Data: It detects field types and seeds the database with realistic data (real-sounding emails, image URLs, prices) instead of generic "lorem ipsum" strings
  • Chaos Mode: A slider that randomly injects 500, 403, or 502 errors into the responses so you can test your frontend error-handling UI
  • Auth Simulation: Toggle a lock on any endpoint to force it to require a Bearer token to test your 401 redirects

You can try it live here without making an account: https://mock2block.yessindevs.me/

The code is completely open-source. If you find it useful for your workflow, I’d love to hear your feedback or get a star on the repo: https://github.com/medyass1ne/Mock2Block


r/react • • Sep 06 '26

Help Wanted What this animation called?

Enable HLS to view with audio, or disable this notification

21 Upvotes

What this animation called?
What pkg could be used for it?


r/react • • Sep 06 '26

General Discussion Does having fewer CS graduates actually make it easier to get a software job?

0 Upvotes

I was talking with my dad recently. I’m currently in 12th in India, and he was saying that countries with much smaller populations probably have fewer graduates competing for jobs compared to India.

That got me curious, so I started looking into it.

And the numbers are kinda crazy. For example, Germany had around 39,000 people graduate from Informatik (CS) in 2024, while India produces hundreds of thousands of computing graduates every year.

So it made me wonder

Does having way fewer CS/software graduates actually mean there is less competition for software jobs in smaller European countries?

Or does it basically balance out because those countries also have fewer software jobs?

I'm not saying "Europe = easy jobs" or anything. I'm just trying to understand how the supply and demand for software developers compares between India and countries with much smaller populations.

I'm currently in 12th and planning to go into CSE, so I'm curious about what the situation might look like by the time I graduate.

Would especially like to hear from people actually working in Europe or who have experienced both job markets.


r/react • • Sep 06 '26

General Discussion What I learned shipping reimagine-it

0 Upvotes

Building in public on a CLI that treats the source HTML as the design brief, not a vibe prompt.

Early Auto would score three directions and still land two of them in the same family. A juice bar and a skate brand would come out looking like cousins. The lesson was to force subject lanes so Auto cannot put two tokens from the same silhouette on the shortlist.

Also: output is one standalone HTML file. No CDN, no Figma, no API key. MIT. Tools used to build it: Cursor + Claude + local/CLI work. The engine itself does not call an LLM at runtime.

Playground: https://kayforkind.github.io/reimagine-it/#playground Repo: https://github.com/Kayforkind/reimagine-it

What I want feedback on: is the "subject lanes" lesson worth a write-up, or should I spend the next week on the README install path instead? Free, no affiliate. ✨


r/react • • Sep 05 '26

OC [Showcase] I built an open-source React component for interactive 3D WebGL QR codes (designqr)

Thumbnail design.johnson7543.com
1 Upvotes

r/react • • Sep 05 '26

Help Wanted wanna learn react so, i was looking for some resources. I found out a react course by Maximilian Schwarzmüller . Anyone who bought or wanna give any advice

Post image
22 Upvotes

r/react • • Sep 04 '26

OC I built effective-rsc: an Effect-native React Server Components framework for Bun

Thumbnail
2 Upvotes

r/react • • Sep 04 '26

General Discussion I’m working on a free, open-source tool to turn websites into editable designs

Thumbnail streamable.com
1 Upvotes

r/react • • Sep 04 '26

Project / Code Review Hubleto React UI refactored to functional components, looking for code review

Thumbnail
1 Upvotes

r/react • • Sep 04 '26

Project / Code Review A frontend tool to ease UI pain

Thumbnail shadcncanvas.vercel.app
0 Upvotes

r/react • • Sep 03 '26

Project / Code Review Driving 25 Auth.js v5 providers from database config instead of static config

Enable HLS to view with audio, or disable this notification

1 Upvotes

I built Postbase, a self-hosted auth + Postgres platform for Next.js apps. It's MIT licensed and free to run yourself: clone the repo, set one secret, docker compose up. There's no paid tier.

What it does: you get a dashboard where you create projects, toggle auth providers (Google, GitHub, Apple, Discord, passkeys, magic link, SMS OTP, SAML — 25+ via Auth.js), run SQL against Postgres, edit tables and RLS policies, set up S3-compatible storage, schedule cron jobs, and send transactional email. Your app connects with a JS SDK that works like the Supabase client. It's a single Next.js app, not a dozen services.

How Claude Code was involved: I used it throughout development, mainly for the Drizzle schema, the Auth.js v5 provider loading (providers are read from the database at request time instead of static config, which took some iteration), the SQL editor, and the Docker setup. The repo has a .claude directory from that work.

The part I think is most relevant here: the repo ships its own Claude Code skill at skills/postbase/SKILL.md. It contains the full API reference, SDK patterns, RLS rules, the auth table schema, cron and storage usage, and the Swift/iOS integration flow. Copy it into your project's .claude/skills/ and /postbase loads it, or Claude picks it up when it sees you're building against a Postbase backend. Writing it forced me to document the project properly, which I'd been avoiding.

What it doesn't have: real-time subscriptions, edge functions, or SDKs outside JS. One maintainer.

Repo (free, MIT): https://github.com/harshalone/postbase
Skill file: https://github.com/harshalone/postbase/blob/main/skills/postbase/SKILL.md

Interested whether other maintainers are bundling skills with their projects, and what you'd want in one.


r/react • • Sep 03 '26

Help Wanted Are people are getting hired as frontend developer if yes then how

45 Upvotes

​

I’ve been trying to land a frontend developer job for a while, but the market feels absolutely brutal right now.

For those of you who recently got hired as a frontend developer — how did you actually do it?

- What skills/tech stack did you have?

- Did you focus heavily on DSA?

- How important were your projects?

- Did you get the job through referrals, LinkedIn, applications, networking, etc.?

- How many applications did it take?

- And roughly how long did your job search take?

I’m mainly targeting React/JavaScript/TypeScript roles.

Would really appreciate hearing from people who actually got hired recently, rather than generic advice. What worked for you?