Shu
banner
shud.in
Shu
@shud.in
only raw thoughts here (like very raw, with typos)
Reposted by Shu
This is actually really funny to me. While react developers are criticizing RSCs because it's viewed as abandoning SPAs, anti-react developers are criticizing react SPAs by citing issues from the 2010s solved by RSC.
December 2, 2024 at 9:43 PM
December 3, 2024 at 4:00 PM
The making of cobe.vercel.app. I’ll see if I have time to improve the perf & add marker overlay to it during the holidays
November 30, 2024 at 4:34 PM
November 29, 2024 at 3:30 AM
what’s the way to preload an <iframe> in 2024?

all I found on the internet was lazy loading it
November 28, 2024 at 2:59 AM
Reposted by Shu
Trying View Transitions in Next.js using @shud.in’s next-view-transitions library. Love how straight-forward this was.

github.com/shuding/next...
November 24, 2024 at 10:29 PM
next time!
November 24, 2024 at 6:27 PM
Reposted by Shu
don’t useEffect, but if you must, don’t call setState in it
November 23, 2024 at 4:20 PM
I recently switched from a 8GB RAM MacBook Air to a 36GB M4 Pro. Things become much smoother (literally ship 2x more PRs) but I wish someday I can instead optimize my tools and go back to my 8GB Air :/
November 23, 2024 at 5:37 PM
const get = use (v) => {
side effects
return () => {
cleanup v
return v’
}
}

// useState + useEffect in one hook? maybe a language
November 23, 2024 at 6:36 AM
Video Game Club
Historical records of the Video Game Club
sf-game-club.vercel.app
November 23, 2024 at 3:44 AM
November 18, 2024 at 4:57 PM
i {
z-index: sky;
}
November 11, 2024 at 5:29 PM
10/10
November 11, 2024 at 6:40 AM
8h flight, any recommendations?
November 10, 2024 at 7:17 PM
Murdle is a nice design that combines sudoku and general logic puzzles
November 10, 2024 at 11:15 AM
ultimately, it comes down to taste
November 8, 2024 at 5:33 AM
is it just me or Bluesky should reduce it’s word-spacing a bit?
November 8, 2024 at 12:33 AM
Reposted by Shu
My talk from #nextjsconf is now available on YouTube!
Optimizing LCP: Partial Prerendering deep dive (Wyatt Johnson)
YouTube video by Vercel
youtu.be
November 7, 2024 at 5:12 PM
time to bring this to the web
November 6, 2024 at 8:30 PM
X is just a unstyled close button
November 6, 2024 at 7:34 PM
it’s nice to say yes but it’s even better to say no

- as someone originally from a country that doesn’t have votes 🫤
November 5, 2024 at 7:08 AM
improved the quality a lot by dynamically setting the `scale` prop of feDisplacementMap and make it the smallest possible value for the current mapping!
November 3, 2024 at 11:38 PM
good design self explains
November 3, 2024 at 9:16 AM