Alex
banner
alexdln.com
Alex
@alexdln.com
Web Engineer, Author, Contributor, Photographer
Frontend/React/Next.js/UX/DX/Сapybara/Performance/Growth

🔨 Building slidebook.dev | atsky.app | robindoc.com | nimpl.dev
🏡 Living alexdln.medium.com | github.com/alexdln
_And apparently the react compiler does exactly that. I don't know why I didn't think of him right away_
November 14, 2025 at 10:53 AM
...How can I simplify the decomposition?What if I have local state, but only a small element on the page depends on it?

useState, will trigger a check for all elements. Contection, on the other hand, solves this, but it requires creating a Provider at a higher level.
November 14, 2025 at 10:44 AM
...Contection allows you to trigger a re-render at the exact point, skipping all other layers. The compiler, on the other hand, optimizes each layer to ensure optimal re-rendering. This speeds up the process without requiring any additional effort. And this is the question I'm asking myself now...
November 14, 2025 at 10:44 AM
I shouldn't get carried away with new ideas - it always ends badly...

But I sincerely believe that this is the path React development should take!
November 14, 2025 at 12:18 AM
Now you can subscribe to:
- width or height,
- breakpoint changes (width or height),
- relative changes (eg larger than lg);

Or use current viewport information without re-rendering at all.

And all this is built on a single resize observer, optimized and accelerated
contection/modules/viewport at main · alexdln/contection
A state management library that extends React Context API with fine-grained subscriptions and computed values - alexdln/contection
github.com
November 13, 2025 at 2:05 PM
Testing in a real project...
November 13, 2025 at 1:41 PM
Well, I can understand when it's just another startup, but @github.com, how?
November 11, 2025 at 6:24 PM
And this is the file that allows to control all such changes and guarantee the reliability of their typing
November 11, 2025 at 1:05 PM
These simple checks make updates and optimization much easier, and also provide strong protection against accidental generic breakage
November 11, 2025 at 10:22 AM
Just in case, I will translate it into another language so that more people can understand.

Broken scrollbars have become too common problem 🫠
This is what happens when the entire company is Apple-powered...

* Please don't use w-screen within a scrollbar element, use w-full *
November 10, 2025 at 9:35 PM