r/react • • 5h ago

OC VinUI: 63 open-source components for React (also Vue, Svelte, HTML) that copy into your project instead of installing as a package

1 Upvotes

VinUI is an MIT-licensed component library I've been building. Instead of a runtime dependency, a CLI copies plain source files into your project, so you own the code:

npx /ui init
npx /ui add <component>
  • 63 components, 13 page blocks (auth, dashboard, settings, pricing) and 16 SVG charts
  • Eight visual styles with the same component names and props. Each style is just CSS variables.
  • Checked against WCAG 2.2 AA in every style, in light and dark
  • npx u/vinish/ui diff shows upstream changes when you want them
  • React 18+

Docs: https://vinish.dev/ui
Repo: https://github.com/devvinish/vin-ui


r/react • • 10h ago

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

Thumbnail reddit.com
1 Upvotes

r/react • • 10h ago

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

Thumbnail reddit.com
0 Upvotes

r/react • • 13h ago

Project / Code Review 21st Dev Component

Thumbnail reddit.com
1 Upvotes

r/react • • 21h ago

Project / Code Review Projeto data grid react (open source vs comercializar)

Thumbnail reddit.com
0 Upvotes

r/react • • 2d ago

OC [self-promo] AV Schematic designer for React

Post image
6 Upvotes

We've just released a new starter app for React - an AV Schematic designer. Drag devices onto a canvas, connect ports of the same type with cables, export the whole thing as a DXF. Demo on our site is here: https://visuallyjs.com/demonstrations/av-schematic and the GitHub repository is here: https://github.com/visuallyjs-react/av-schematic


r/react • • 1d ago

Project / Code Review Claude Code builds my apps, but the UI never looked really good. So I built my own free & local visual editor (with Claude)

Thumbnail reddit.com
0 Upvotes

r/react • • 3d ago

General Discussion I never though I would get this much love from you guys

Post image
24 Upvotes

About a week ago I shared Motion Brew, a free library of hand-built animated React components, with this community. I honestly didn't expect much.

In the last 7 days:

  • 10.3K component installs
  • 39.4K MCP requests from people pulling components straight into Claude Code, Cursor and other AI tools

For a solo side project, that's huge for me. I've been designing products since 2013, and this is the first time something I made just for fun has spread like this.

So I just wanted to say thank you. Thank you for trying it, sharing it, sending feedback, and building with it. It means a lot, and it tells me people really do care about interfaces that feel alive.

I'm going to keep adding new components. If there's an interaction you've always wanted but never found, drop it in the comments and I'll try to build it next.

Thanks again for the love and support ❤️

In case you missed the last post: motion-brew.com


r/react • • 3d ago

Help Wanted Can't send JWTs from elixir backend on HTTP to react vite frontend on HTTPS

0 Upvotes

Hello,

I am working on a chat app project with a friend and am using React, and Vite for my frontend and Elixir Phoenix for my backend. I'm having trouble sending access and refresh tokens (made with Elixir Guardian) from my backend, which is on HTTP, to the React frontend, which is on HTTPS. Specifically, when I sign in on the frontend, neither tokens show up, the refresh token isn't in the cookies, and the access token isn't in the state I made for it. As a result, I can't access any of the apis that require one of these tokens.

However, when I switch my frontend back to HTTP (which is what I've had since the start and only switched to https recently), everything works as usual and the token from the backend are sent.

The code on the frontend to implement https goes as follows:

export default defineConfig({
  plugins: [
    react({
      babel: {
        plugins: [["babel-plugin-react-compiler"]],
      },
    }),
    tailwindcss(),
    basicSsl()
  ],

If anyone would like more info on my codebase, I'd gladly add it.

Any help would be appreciated !


r/react • • 3d ago

Help Wanted Using React?

Thumbnail reddit.com
1 Upvotes

r/react • • 4d ago

OC Width and height on separate springs: how I matched SwiftUI's notch animation in React

1 Upvotes

The Windows version of my notch app is React + Tauri, and it had to move like the SwiftUI original. I wrote SwiftUI's spring (duration + bounce) as a plain function of time, gave width and height their own springs, and only let a growing side overshoot, capped at 12 px.

The code, with tests: https://github.com/MF-DEEV/Openbar/blob/main/windows/src/island/motion.ts

The app is Openbar, a notch-style island for AI coding agents. Free and open source.


r/react • • 5d ago

Project / Code Review use-places-autocomplete fails on new Google Cloud projects, so I wrote a hook on Places API (New)

2 Upvotes

If you’ve set up Places autocomplete on a new Google Cloud project lately, you may have run into LegacyApiNotActivatedMapError. The legacy Places API, which AutocompleteService calls, is hidden from new projects and left out of new API keys, and Google says it can no longer be enabled for new projects. use-places-autocomplete and react-places-autocomplete both still depend on it.

So I wrote google-places-autocomplete-hook. It:

  • runs on AutocompleteSuggestion (Places API (New))
  • keeps one session token per search and ends it with the details call, so typing plus the pick is billed as one session, without you touching tokens
  • debounces, and drops responses that come back out of order
  • is headless: you render the input and the list
  • works with React 16.8 to 19 and server rendering, with no dependencies
  • has a /compat entry that returns use-places-autocomplete’s shape, so moving over is an import change

Demo: https://ninadsutrave.github.io/google-places-autocomplete-hook/

It runs against Google with your own key. Google’s free Maps Demo Key works and needs no billing; the page shows how to get one. It also logs every request the hook sends and which session it belongs to.

Repo: https://github.com/ninadsutrave/google-places-autocomplete-hook
npm: https://www.npmjs.com/package/google-places-autocomplete-hook

What’s missing for your use case?


r/react • • 6d ago

OC Tanstack founder gives advice for entry level software developers

13 Upvotes

r/react • • 6d ago

General Discussion We built an AI-powered rich text editor for React & Next.js — would love your feedback

Post image
0 Upvotes

Hey devs! 👋

Building a rich text editor from scratch can be frustrating, especially when you need formatting, customization, and AI-powered features.

That's why we've been working on Eddyter, a rich text editor designed for React and Next.js applications.

Here's what we're focusing on:

  • ⚡ Easy integration with React & Next.js
  • 🤖 AI-powered writing and editing
  • 🧩 Extensible and customizable components
  • 💻 A developer-friendly editing experience

Our goal is to help developers spend less time building editor functionality and more time building their actual products.

🔗 Check it out: https://eddyter.com

I'd genuinely love to hear your thoughts:

What is the biggest challenge you've faced when integrating a rich text editor into a React application?

Feedback, suggestions, and criticism are all welcome!


r/react • • 6d ago

OC We open-sourced our studio's React component library (76 components, Base UI + Tailwind v4, MIT)

11 Upvotes

r/react • • 6d ago

General Discussion I think we’ve overcomplicated frontend development — and AI is exposing it

0 Upvotes

I’ve been building React/Next.js applications for years, and something has been bothering me lately.
A lot of frontend projects are becoming *more* complicated while the actual product is getting simpler.

You’ll see:

\- 10+ state-management patterns
\- multiple data-fetching abstractions
\- enormous component libraries
\- custom hooks wrapping custom hooks
\- “generic” components that nobody wants to touch
\- dozens of folders trying to enforce an architecture
\- AI-generated code adding even more layers

And then a developer gets asked to change a button, modify a form, or add one API field… and suddenly they need to understand half the application.

The irony is that AI coding tools are making this easier to create.

You can ask an AI:
“Build a scalable architecture for this feature.”
And it will happily give you 15 abstractions.

The code looks sophisticated.

The architecture diagram looks impressive.
But six months later, someone has to maintain it.

I’m starting to think the better question isn't:
**“How do we make our frontend architecture more scalable?”**

It’s:
**“How little architecture can we get away with while keeping the product maintainable?”**

For example, I’d rather have:

Feature
├── UI
├── API/data
├── state
└── tests

than create a massive abstraction layer just because we *might* need it someday.

And I’m increasingly applying the same thinking to AI-generated code:

**If I wouldn't ask a human developer to write this abstraction prematurely, I shouldn't ask an AI to write it either.**

Curious what other experienced developers are seeing.

**Has AI made your codebase simpler because you can automate the boring parts — or more complicated because it makes overengineering ridiculously easy?**

I'd particularly like to hear from people maintaining React/Next.js codebases that are 2–5+ years old.


r/react • • 7d ago

Project / Code Review GTA VI Countdown – Interactive 3D Globe & World Map

0 Upvotes

Hey!

I've added a new page to ViceHype where you can follow the GTA VI countdown across 40 cities using an interactive globe or a world map.

You can check your local countdown, see which city is next and watch the globe fill up with GTA VI covers as each city reaches midnight.

I built the globe with COBE and the world map with mapcn.

👉 https://vicehype.com


r/react • • 8d ago

OC Skif 0.9 for React monorepos: finding unused components across packages

0 Upvotes

I maintain Skif, an open-source linter for JavaScript and TypeScript monorepos. One use case is cleaning up a shared React component package after a migration. A component can disappear from every screen but still be re-exported through packages/ui/src/index.ts. Checking local imports in the component file won't tell you whether any app still reaches that export.

Skif builds a module graph across the workspace and reports unused files and exports. The distinction matters for shared UI packages: an unused export can point to a legacy component, while an unused file can point to an entire module that no entry point reaches. I’d review findings before deleting public exports or components loaded by conventions the tool may not see.

In 0.9, the disk cache is on by default, so repeated runs can reuse parse results for unchanged files. Skif reads tool configuration statically. If it can’t read a package’s config, it flags that package as incomplete in the report. If you already use Knip, npx @polylint/skif migrate --dry-run previews the corresponding config.

I’d especially like examples of React entry points that are easy to miss with static analysis. If you use lazy routes, Storybook stories, or a shared library with multiple public entry points, what would you expect the linter to treat as in use?


r/react • • 9d ago

Portfolio A React-like JS Framework with Web Components

12 Upvotes

IMPORTANT DISCLAIMER: This is my own project. Im am using AI, so lets get that out of the way... its the key reason for why YOU SHOULD NOT USE IT. Im not trying to promote "yet another ui framework", this is an investigation to see what is possible. Its unreviewed, unaudited and far from finished. Nobody else should be using this. This framework is intended for myself on my own projects. It is provided open-source for transparency, testing and demo purposes. Feel free to reach out for clarity if you have any questions.

Im was investigating an idea i had about JSX-like syntax for webcomponents after some experience with Lit. I am sharing this here because it might be interesting/educational.

Lit is a nice lightweight UI framework, but i didnt like that it was using class-based components. It can support React with a wrapper, buts React is fundamentally an abstraction away from the DOM.

Vue has a nice approach but i prefer working with the syntax that React uses. I find it more intuitive for debugging and deterministic rendering. I wondered if with webcomponents, i could create a UI framework that didnt need to be transpiled.

My intentions with this framework is to get to a reasonable level of stability, to then replace React on some of my existing projects. I made a start by creating some basic reusable ui components components to be built with the js framework. Aiming for something like Material UI.

I can then compound that slop into some basic UI demos:

The disclaimer above is always worth repeating. Im aiming for a post like this to be like "building in public". If interesting to anyone, i hope its inviting to take a look. It's hard to determine if / when its a good time to share, so best to get it out there sooner for any outstanding issues i may be overlooking.


r/react • • 10d ago

Project / Code Review A shared React component can still depend on your checkout context through a hook

0 Upvotes

This is the dependency path I mean:

shared/ui/CartBadge.tsx
  -> shared/hooks/useCartCount.ts
    -> features/checkout/CartContext.tsx

The component looks reusable. It renders a count, and the state access is neatly tucked away in a custom hook. But moving that hook into shared hasn't removed the dependency on checkout.

Easy to miss in a component review

In ArchUnitTS, my open-source architecture testing library, you can pull out that component's import graph:

import { projectGraph } from 'archunit';

const graph = projectGraph('tsconfig.json')
  .reachableFrom('src/shared/ui/CartBadge.tsx');

await graph.exportAsHTML('reports/cart-badge.html');

For that direct-import chain, the view reaches through the hook to the context file. Unrelated components stay out of it.

If the badge is supposed to be shared UI, one way to separate it is to have a checkout-owned wrapper read the context and pass count to the badge. The shared component then has no import path back to checkout, while the feature still owns how the count is calculated. You can also keep a boundary test that rejects imports from shared into features, so the coupling doesn't creep back through the next hook.

This follows source imports. It doesn't tell you which provider is present at runtime, whether a component will render correctly in Storybook, or what ends up in a bundle.

Code and docs. Available as archunit on npm; this example uses 2.5.5.


r/react • • 11d ago

General Discussion Samestate: see your site on every screen at once, with clicks synced across devices

1 Upvotes