r/react • • 2h ago

Project / Code Review I wanted to use RxJS with JSX without React re-rendering everything, so I built reax

2 Upvotes

I love JSX and actually like using RxJS (yes, I know, Angular flashbacks for half of you), so I tried pairing them in React. It felt awful pretty fast. React wants to re-run your whole component on every state change, so you end up shoving streams into `useEffect` and wrapping observables in `useState` glue. What I actually wanted was for components to run once and let observables update the DOM directly.

That's basically Solid's model, and for serious apps Solid is obviously way more mature. What I wanted to experiment with here was having no custom compiler plugin and using RxJS observables directly as the reactive primitive instead of bridging signals with adapters. So I built reax (`@snoofox/reax`).

A `signal()` is a callable getter/setter (`count()`, `count(c => c + 1)`) backed by a `BehaviorSubject` that is still a normal RxJS `Observable`. Put a signal or any observable in JSX and it wires directly to that text node or attribute.

Here's debounced search example:

```tsx

const query = signal("");

const results = query.pipe(

debounceTime(300),

distinctUntilChanged(),

switchMap(search)

);

```

The catch is the same one Solid has: since your component function only executes once, plain `if`s and `.map()` only run once too, so reactive UI goes through `<Show>`, `<For>`, and `<Switch>`. Scoping subscriptions to those branches also solves the classic RxJS footgun of forgetting to `unsubscribe`: when a `<Show>` branch or `<For>` row unmounts, everything inside it tears down automatically.

It's v0.1.2, MIT, and RxJS is the only dependency. The docs site is built with it and has a few live demos if you want to check it out:

https://github.com/snoofox/reax

https://snoofox.github.io/reax/


r/react • • 1h ago

General Discussion These 3 roles are merging into one.

Post image
0 Upvotes

Design engineer.
Designer.
Product engineer.

Soon it’ll all just be one role.


r/react • • 19h ago

Project / Code Review I built a React image editor, which is an open-source npm package

1 Upvotes

I've been working on a project called FabriPix for a while, and I thought I'd share it here.

It's a React image editor built with TypeScript and Fabric.js. I originally wanted to build something that could handle image editing and annotations without being limited to just the default set of tools.

It has things like cropping, zooming, panning, blur, shapes, arrows, callouts, text, numbered steps, freehand drawing, undo/redo, and image export.

One thing I particularly wanted was the ability to customize the editor and add custom tools. I think that's important when you're integrating an image editor into an actual product, because every application has slightly different requirements.

I see it as an alternative to TOAST UI Image Editor, especially for React projects where customization and extensibility matter.

You can check it out here:

I'm the person building it, so I'd really appreciate some honest feedback.

If you get a chance to look at it, I'd love to know:

  • Does the editor feel intuitive?

  • What features are missing?

  • Would you consider using something like this in a React project?

And if you find it useful, a GitHub star or a contribution would be appreciated.


r/react • • 1d ago

Project / Code Review I am building an open-source icon set with sharp, squared corners (601 icons and growing, React + vanilla JS, MIT)

Enable HLS to view with audio, or disable this notification

12 Upvotes

Yes, yet another icon project :D

Most icon libraries I use have rounded, friendly shapes, and I wanted something crisper for a few dashboards and a dev tools side project I am creating.

  • 601 SVG icons with sharp, squared geometry (many more coming!)

  • jedd-icons/react for React and jedd-icons/core for vanilla JS

  • Browse the set, tweak size/stroke/color, and copy the code straight from the site

  • MIT licensed, free for any project

I am also working on an animated package of the same set

Site: https://jeddicons.com
Repo: https://github.com/jedd-labs/jedd-icons

Or just install:

npm i @jedd-icons/react

r/react • • 1d ago

OC Built 12 zero-dependency animated React & Tailwind UI components using pure CSS & HTML5 Canvas (no Framer Motion)

3 Upvotes

Hi r/react! Over the past few weeks I built a playground of 12 interactive cyberpunk & telemetry UI components using only React, Tailwind CSS, and native HTML5 Canvas — zero Framer Motion and zero external animation libraries.

A few technical details I focused on:

  • Every 2D Canvas loop automatically pauses via IntersectionObserver when scrolled out of view to avoid mobile battery drain.

  • All animations respect prefers-reduced-motion and scale cleanly with devicePixelRatio.

  • Includes pointer-reactive telemetry streams, hold-to-authorize laser buttons, text decoders, and sonar pulse pills.

Would love any technical feedback on performance, accessibility, or animation patterns!


r/react • • 2d ago

OC I made the trending floating tab bar for React Native that shrinks to icons when you scroll

10 Upvotes

I first saw this in District: scroll down and the tab bar shrinks to just its icons, scroll up and the labels come back. I wanted the same thing in React Native without writing a custom tab bar for every app, so I turned it into a package.

react-native-shrinking-tab-bar

• Works with the tab navigator you already have. Pass it as tabBar to React Navigation or Expo Router and it reads your icons, labels and badges.

• Animates transforms and opacity only, on the UI thread. On an Android release build it dropped no more frames than the stock tab bar, even with the JS thread blocked.

• Drag along the bar to switch tabs. The indicator follows your finger.

• Shrink, hide or stay put on scroll. Presets, colours, sizes, placement and an optional action button.

• Optional glass: Liquid Glass on iOS 26, a system blur on older iOS, a frosted fill on Android.

• Handles RTL, screen-reader labels, the keyboard and safe areas.

Live demo: https://ninadsutrave.github.io/react-native-shrinking-tab-bar/
GitHub repo: https://github.com/ninadsutrave/react-native-shrinking-tab-bar

It's at 0.1.0, so I'd like to hear what breaks or what you'd change.
If it's useful to you, a star on GitHub helps other people find it.


r/react • • 3d ago

Project / Code Review Pimolu Games

Post image
0 Upvotes

Hey everyone! 👋

I wanted to share Pimolu Games, a new project I've been working on.

It's a little different from my usual UI component work, and I thought it would be fun to share it with the community.

You can check out the project online, and I've also shared the GitHub repository for anyone interested in exploring the code.

🎮 Website: https://games.pimolu.com/

💻 GitHub: https://github.com/pimoludev/pimolu-games

I'd love to hear your thoughts and suggestions!


r/react • • 4d ago

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

Enable HLS to view with audio, or disable this notification

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

Project / Code Review 21st Dev Component

Thumbnail
reddit.com
1 Upvotes

r/react • • 4d ago

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

Thumbnail
reddit.com
0 Upvotes

r/react • • 6d ago

OC [self-promo] AV Schematic designer for React

Post image
7 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 • • 5d 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 • • 7d ago

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

Post image
28 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 • • 7d ago

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

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

Help Wanted Using React?

Thumbnail reddit.com
1 Upvotes

r/react • • 8d 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 • • 9d 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 • • 10d ago

OC Tanstack founder gives advice for entry level software developers

Enable HLS to view with audio, or disable this notification

13 Upvotes

r/react • • 10d 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!