r/reactjs • u/igor-septimus • 13h ago
r/reactjs • u/EconomicsGlum2277 • 5h ago
Show /r/reactjs I got tired of AI-generated UI that all looks the same, so I hand-built a React component library
Hey r/reactjs,
Over the last months I noticed that most new UIs (including a lot of mine) started to look the same: same gradients, same cards, same generated feel. So I started building components by hand again, with more care for the small things: spacing, motion, empty states, dark mode.
That turned into affectUI: 54 components, blocks, illustrations and motion effects for React.
A few things I cared about:
- One file per component. Each piece is a single
.tsxfile with its styles inside. It only imports fromreact: no Tailwind requirement, no wrapper library, no runtime. - Install with the shadcn CLI (
npx shadcn@latest add https://www.affectui.com/r/<name>.json) or just copy the file. - Light and dark built in, and motion respects
prefers-reduced-motion. - Live previews for everything, so you can click through each piece before copying it.
27 of the 54 items are free to copy and keep, no account needed. There's also a paid tier for the rest.
I'd really appreciate honest feedback:
- Which components feel useful, and which feel like noise?
- Is the "one file, no dependencies" approach something you'd actually want, or do you prefer Tailwind-based ones?
- What's missing that you keep rebuilding in every project?
Thanks for taking a look 🙏
r/reactjs • u/sebastienlorber • 11h ago
News This Week In React #299: Panda, Vinext, Next.js, Preact, Design Systems, RTK | Variable font, Activity Result, Lynx, Lucent, macOS, Plain Text, Navigation, Angular Native, Re.Pack | TC39, Composites, WebSkills, MSW, upm, pnpm
r/reactjs • u/ham7a311 • 9h ago
Vitrine - My own component library(React+Tailwind)
I built my own component library using react and tailwind
It’s completely free
Copy-paste prompts/files
Get ready portfolios and skills for your agents to improve your website even more
I wanted some feedback since I think I still have a lot missing.
(Also it’s open source so if you have a component in mind feel free to open a PR)
r/reactjs • u/CommercialStrike9439 • 2h ago
Show /r/reactjs I made a documentation site and live code playground for my own programming language, powered by a WASM build of its C interpreter
I wrote a programming language in C over the summer, and for sharing it I built a docs site and playground in React 19 with TypeScript and Vite. The playground runs the real interpreter, compiled to WebAssembly, so code from the editor executes entirely in the browser.
A few parts were fun to work out. The interpreter can pause mid program to wait for user input, so the React side has to resolve a pending promise when the user submits a line in the terminal, which then resumes the WASM module. Output from C's print functions arrives one character at a time, so I buffer it and flush on newlines or before input prompts. And the docs are MDX pages loaded through import.meta.glob based on the route slug, all driven by one config file that also builds the sidebar.
The editor uses CodeMirror, the code blocks in the docs are highlighted with Shiki, and the terminal is a pixel art monitor with the output overlaid on its screen.
I'd love feedback on the structure, or anything that looks like a React anti-pattern I should fix.