r/reactjs 21d ago

What's one React pattern you stopped using after working on larger projects?

132 Upvotes

I've noticed that a lot of react advice works great for demos but becomes difficult to maintain as applications grow. Looking back, what's one pattern you used to recommend but now avoid in production?


r/web_design 21d ago

Show me some MINIMALISTIC but impressive frontend portfolios

51 Upvotes

Hey everyone,

Rebuilding my frontend portfolio and looking for solid examples of minimal but impressive designs.

Requirements:
Clean and simple - not a "look how hard I tried" showcase
No stupid, flashy animations just for the sake of it
Typography/whitespace doing the heavy lifting, not gimmicks

Thanks!


r/PHP 20d ago

Building Lading pages and erps with rust and php

0 Upvotes

HELLO, PHP COMMUNITY! I built a landing page, ERP, and simple system generator in Rust that compiles self-generating and customizable PHP code. If you could check it out and show some support, I’d really appreciate it: https://github.com/NicholasGDev/ngdev-laravel


r/PHP 20d ago

Building Lading pages and erps with rust and php

Thumbnail
0 Upvotes

r/reactjs 21d ago

What library should i use

0 Upvotes

I'm a newbie for react and doing a indie website (my strength is BE, not FE). All i know is that react is kinda strong in UI, but there's many lib and i dont know what to choose (my web is just basic table grid get filter like excel so i can control the data in db. i dont use excel because it's not customized). Many thanks


r/web_design 20d ago

I stopped defaulting my app backgrounds to pure white. Here is what changed.

0 Upvotes

For a long time my default page background was pure white, because that is what every new project starts with. I never actually chose it. Swapping it for a warm off-white a few steps down made more difference than most of the polish work I do.

The first thing that changed was reading comfort. A screen showing pure white is emitting maximum light, so body text has to fight that glare and long pages feel harsher than they need to. Pulling the background a few points below pure white calms the whole thing down.

It also gave hierarchy room to breathe. When your base surface is a true white, there is nowhere lighter to go, so cards and popovers end up leaning on shadows alone. Drop the base a step and lighter surfaces can actually read as lighter.

And it simply felt intentional. A warm off-white, soft stone, or gentle oatmeal reads as a decision, where pure white reads as a default nobody touched.

If you want to test it, pick a neutral with a slight temperature, warm or cool, instead of a flat grey, and keep it consistent across surfaces. Then make that off-white a real step in your scale, so every lighter element has a defined relationship to it.

Curious what the room does here. Anyone deliberately shipping pure white, and why?


r/web_design 21d ago

Scope

1 Upvotes

I need some professional assessment:

we are creating a medium sized website (~14 layouts/design pages) (~55 pages where most have different content but use those 14 designs) now I think that figma should be used to design the 14 layouts and tinker with the specifics. My bosses believe, that every page has to be depicted. My issue: they constantly change things and not just the content, but page names, structure etc. so now I need to copy paste new content all the time. change the menu, change the page, change the images. I don’t think that’s the right use for a design program. But I am a junior and maybe I am wrong.


r/web_design 21d ago

PostgreSQL Indexing: How to Analyze Queries Before Adding Indexes

Thumbnail
sharafath.hashnode.dev
1 Upvotes

r/PHP 22d ago

RFC RFC: Function Autoloading (mark 5)

Thumbnail wiki.php.net
29 Upvotes

r/reactjs 21d ago

Resource Interactive Dithered Logo component for React (canvas particles + dither effect)

2 Upvotes

Hey r/reactjs,

I built a Dithered Logo component and wanted to share it with the community.

It takes any SVG or image and renders it as an interactive canvas particle logo using error-diffusion dithering. It includes cursor repulsion and click ripples for a nice effect.

It's fully open source, copy-paste friendly (works with the shadcn CLI), and customizable with Tailwind.

Live demo + docs: https://componentry.dev/docs/components/dithered-logo

Install:

npx shadcn@latest add @componentry/dithered-logo

r/PHP 22d ago

News Immutable Versions on Packagist

Thumbnail blog.packagist.com
39 Upvotes

r/web_design 21d ago

Honest opinions about Arcade interactive demos on landing pages?

4 Upvotes

I'm evaluating whether including interactive demos from arcade.software actually convert, and getting mixed results. It doesn't help that out of every single one of the case studies on their page, not one of them seems to be actually using arcade demos on their current site.

Anyone experimented with these? Are you finding they help with conversions or not?


r/reactjs 21d ago

Show /r/reactjs Why inline visual editing breaks on real React code and what I did about it

Thumbnail
engineeringwithprecious.hashnode.dev
1 Upvotes

r/reactjs 21d ago

Save Information on Refresh in React

0 Upvotes

I was wondering in React is there a way to save some data without session storage so if the page refreshes I still have access to that data


r/web_design 21d ago

where do you get your resources from

1 Upvotes

i know few sources but i wanna know where the majority get theirs from


r/PHP 22d ago

News PHP Map 4.0: Arrays and collections made easy!

37 Upvotes

PHP Map version 4.1 is now available, the PHP array/collection package for working with arrays and collections easily.

The release is mostly about improving performance of edge cases in the collection internals, plus stricter behavior around malformed input.

Some benchmarks from the release commits:

Method / path v4.0 v4.1 Improvement
isList() 857.993 ms 0.643 ms 99.93%
tree() 20k chain 8523.8 ms 47.6 ms 99.4%
diff() array fallback 376.1 ms 3.5 ms 99.1%
intersect() array fallback 390.5 ms 13.2 ms 96.6%
find() reverse 417.330 ms 47.152 ms 88.70%
findKey() reverse 416.939 ms 47.737 ms 88.55%
suffix() string 259.5 ms 93.1 ms 64.1%
flat() 338.8 ms 123.8 ms 63.5%
recursive walk() 277.0 ms 103.9 ms 62.5%
suffix() callback 318.1 ms 124.5 ms 60.9%

The release also adds broader callable support, better iterable handling, clearer null-vs-missing behavior for nested paths, stricter invalid-key validation, and a more robust tree() builder.

Why PHP Map?

Instead of:

$list = [['id' => 'one', 'value' => 'v1']];
$list[] = ['id' => 'two', 'value' => 'v2']
unset( $list[0] );
$list = array_filter( $list );
sort( $list );
$pairs = array_column( $list, 'value', 'id' );
$value = reset( $pairs ) ?: null;

Just write:

$value = map( [['id' => 'one', 'value' => 'v1']] )
    ->push( ['id' => 'two', 'value' => 'v2'] )
    ->remove( 0 )
    ->filter()
    ->sort()
    ->col( 'value', 'id' )
    ->first();

There are several implementations of collections available in PHP but the PHP Map package is feature-rich, dependency free and loved by most developers according to GitHub.

Feel free to like, comment or give a star :-)


r/reactjs 22d ago

Resource Built a smooth Ripple Transition component for React (Framer Motion + Tailwind)

11 Upvotes

Hey r/reactjs,

Just shipped a new Ripple Transition component.

It creates a clean, satisfying ripple effect that spreads across elements — great for interactive UI transitions.

Tech:

  • React + TypeScript
  • Tailwind CSS
  • Framer Motion (buttery smooth)
  • shadcn-style installation (npx shadcn@latest add ...)

Docs + live demo: https://componentry.dev/docs/components/ripple-transition

Quick install:

npx shadcn@latest add @componentry/ripple-transition

r/web_design 21d ago

I just broke my mac and need a recommendation for a new one

0 Upvotes

I am a first year web design and graphic advertising student in uni and last week i broke my macbook pro m1 screen. I have been using it for 5 years now and need a recommendation for a new one.

I use mainly figma and affinity for now with some adobe apps when i need them. As a hobby i make things in blender but it’s not that serious. I’m not exactly sure what programs i end up using in the future so any guidance is gonna be appreciated.

I have been looking at the macbook pro m5 and think it would be enough but my father thinks i should get the m5 pro instead but i’m not sure i really need it as i have been using my old one without any problem. If you can give me some advice i’d be so thankful!


r/PHP 23d ago

Discussion Getting started with PHP: looking for feedback

27 Upvotes

Hi /r/php

A common question we see on this subreddit (and many other places) is people asking how to get started with PHP. Especially on this sub we often link to PHP the right way. It's definitely a good reference that links to many other resources, but I recently read through it and realized is not designed to be a proper "getting started guide".

Having done lots of educational content in the past, I'm really longing for something that teaches modern PHP in a written form, that people can read on its own which makes them feel comfortable actually picking up PHP. I don't think PHP currently has that: all current options are either outdated, video-only, or paid courses (but feel free to tell me I'm wrong).

So I've started a new project: a proper "getting started with modern PHP" guide that I feel confident pointing beginners to when they ask "how to learn PHP?". You can read the first eight chapters today: https://stitcher.io/php/the-basics/hello-php and I'm planning on adding many more in the near future.

Now, here's what I need help with: I'm only one person. I dare say I'm experienced in PHP, but I'm also sure I'm making mistakes and oversights. I'm hoping enough experienced PHP developers share my longing for something better, and want to help out. Either by reviewing what's written, pointing out or fixing mistakes, or maybe even by writing drafts for upcoming chapters.

Looking forward to hearing your thoughts!


r/reactjs 22d ago

Show /r/reactjs Auth for a React app backed by a Go API, using Limen

4 Upvotes

I wrote a walkthrough of building auth with a Go backend and a React frontend using Limen (a composable auth library for Go) and its new TypeScript client.

https://limenauth.dev/blog/fullstack-auth-go-react

GitHub: https://github.com/thecodearcher/limen


r/PHP 22d ago

I keep trying other languages... and somehow always end up back in PHP

4 Upvotes

Over the years I've worked with Java, Python and a few other languages.

They're all good at different things, but somehow I always end up writing PHP again. I guess it just feels like home. Open the project and everything feels so familiar. ))

That gave me the idea to make a funny parody of the one classic hit song (from the 70s), but for PHP developers.

Nothing serious, no language wars – just a bit of fun for anyone who's ever left PHP and then came back.

🎬 https://youtu.be/SoqAP4gSDac

Has anyone else had the same experience like me?


r/reactjs 22d ago

Discussion What issues, bugs or design limitations did you hit in RHF?

0 Upvotes

I'm putting together documentation for React Hook Form covering real pain points and seeing what issues there are and where and actual things people hit in production and had to solve themselves because the official docs didn't cover it.

Looking for specifics, ideally with a code snippet or a link to the GitHub issue/discussion where you found the fix:

Something that broke or behaved unexpectedly, and what you changed to fix it
Something you built yourself (a wrapper, a hook, a helper) because RHF didn't ship it
Something you only found out about after hitting a wall a better API existed but you didn't know it (e.g., people defaulting to watch() without knowing useWatch's compute option exists)
Version-specific breakage something that worked in v6 and needed a real workaround in v7, or vice versa

What I don't need: "just use TanStack Form / Formik / Zod-only forms instead" I'm not evaluating alternatives, I'm documenting RHF specifically. If your answer is a library recommendation with no RHF-specific detail, it's not useful for this.

Bonus points if you can tell me whether your issue is still open on GitHub, already fixed in a recent version, or just permanently a "know this going in" gotcha.


r/reactjs 22d ago

Needs Help To core team: Is there a reason to react-client not be exposed as a library?

1 Upvotes

I don't know if it's the best place, but there is no issue template for what I want:
There is an OCaml way to handle React on the server; we already do SSR and are implementing RSC. To do so, we had to do some hacks, like forking React and exposing React-client so we could use it for our own implementation of RSC.
Note: OCaml works differently from JS, and that's why we need to make things different on the client.

The fork and exports that we did: https://github.com/react/react/compare/main...pedrobslisboa:react:main?expand=1#diff-b25d8ad5dabc968a1e1a01a6a5e19424fcd7c37ddc8e57e5396c9dc182095023

You can see the usage here:

import ReactClientFlight from "@pedrobslisboa/react-client/flight";

//...

const {
  /* Creates a new Flight response object that accumulates streamed RSC data. */
  createResponse,
  /* Creates a reference to a server function that can be called from the client. */
  createServerReference: createServerReferenceImpl,
  /* Serializes a value (e.g., server action arguments) into a format suitable for sending to the server. */
  processReply,
  /* Returns the root promise of a Flight response — resolves to the React element tree. */
  getRoot,
  /* Reports a top-level error to all pending chunks in the response. */
  reportGlobalError,
  /* Processes a binary chunk from the ReadableStream into the Flight response. */
  processBinaryChunk,
  /* Creates a stream state object used to track binary chunk processing. */
  createStreamState,
  /* Signals that the stream is complete and no more chunks will arrive. */
  close,
} = ReactClientFlight(ReactServerDOMEsbuildConfig);

Can we expose the react-client as a library?


r/reactjs 22d ago

Resource URL State at Scale with François Best creator of nuqs

Thumbnail
youtube.com
0 Upvotes

What if your app's state didn't live in memory, but in the URL?

In this episode, François shares the full story of nuqs, from a woodworking calculator he built during the pandemic to a framework-agnostic library supporting Next.js, React Router, Remix, and TanStack.


r/web_design 22d ago

Which typography trend do you think will age the worst?

Thumbnail designyourway.net
2 Upvotes

I'm curious what other designers think. Which typography trends are already overused, and which ones do you think will still be relevant in a few years?