r/reactjs • • 16h ago

Show /r/reactjs Added 2 free neobrutalism templates. Dashboard and landing page.

Thumbnail
neobrutalism.dev
2 Upvotes

r/reactjs • • 1h ago

Show /r/reactjs Built an open-source code typing test for developers in React 19 & Pure CSS (with Web Audio mechanical keyboard sounds)

• Upvotes

Hey r/reactjs!

Wanted to share an open-source project I've been building: CodeTyper

Live Demo: https://codetyper-beta.vercel.app/

GitHub: https://github.com/saumypandey745/codetyper

Frontend & Architecture Highlights:

- React 19 & Vite 8: Code-split dynamic views with route-based hydration and instant keystroke capture telemetry.

- Pure Vanilla CSS: Handcrafted botanical design system using modern CSS variables - keeping the production CSS bundle under 30 kB without utility bloat.

- Web Audio API Engine: Custom sound synthesizer for mechanical keyboard switch acoustics (Cherry MX Blue, Brown, Red, Topre) with zero audio latency.

- Clean PushState SPA Routing: Complete client-side history navigation with dynamic OpenGraph & JSON-LD schema synchronization.

- 25+ Real Language Stacks: Practice real code syntax (React/JSX, TypeScript, Python, C++, Go, Rust, SQL).

I'd love your honest feedback on the architecture, input handling, and UX!


r/reactjs • • 9h ago

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

Thumbnail
1 Upvotes

r/reactjs • • 12h ago

Discussion Adapter over React hook forms

0 Upvotes

Those of you that use a form library in your react codebase. Do you tend to create an adapter over it or just use it directly? The reason I am asking is because I want to protect our codebase in case we need to shift to a different library at some point. It’s much easier to update the adapter in this case than it is to adjust the whole codebase (even with agents).


r/reactjs • • 9h ago

Show /r/reactjs Claude and I built a Shopify-style one-page checkout in React, with every component usable on its own (MIT)

Thumbnail
github.com
0 Upvotes

I needed a good checkout for a site that isn't on Shopify, and I think Shopify's one-page checkout is the best one out there. So Claude and I rebuilt the design in React, and I open-sourced it.

Demo: https://gurfi1.github.io/react-shopify-style-checkout/

Repo: https://github.com/gurfi1/react-shopify-style-checkout

What's in it

  • The whole checkout as one <Checkout> component: contact, address with autocomplete, shipping rates, payment methods, discount codes, order summary, and the thank-you page.
  • Around 40 components you can take one at a time. Each lives in its own folder with a stylesheet, a live demo and a README that lists what else it needs.
  • The behaviour as hooks (useCheckout, useShippingRates and others) if you want the logic with your own UI.
  • Right-to-left support, with a Hebrew locale included. Add ?lang=he to the demo to see it.

How it's built

React 19, TypeScript, CSS Modules, and design tokens as CSS variables. No UI library and no runtime dependencies besides React. There's no npm package yet: you copy the folders you want, or use the repo as a template.

You connect it to your back end through four functions: suggestAddresses, shippingRates, applyDiscount and placeOrder. The demo runs on canned data.

What it is not

  • It doesn't take payments. The card fields are placeholders that you swap for your provider's hosted fields.
  • It has no cart, tax or inventory logic. That belongs on your server.
  • It isn't affiliated with Shopify and contains none of their code. We measured the design and the motion from the real thing and wrote it from scratch.

How it was made

I used Claude Code to build it. I made the product and design decisions and reviewed the result, and Claude wrote most of the code and the docs. Every commit is co-authored, so the history shows it.

Not tested yet

Firefox and screen readers. The automated accessibility scan is clean and keyboard-only works, but that isn't the same as a real screen-reader pass. The docs list the known gaps.

Feedback I'm after

I'd most like to hear whether the component boundaries make sense and whether the api contract would fit a real back end. Issues and PRs are welcome, and so are test reports from Firefox and from screen-reader users.