Punie 🦇
punie.dev
Punie 🦇
@punie.dev
I 100% agree with @tkdodo.eu here.

And usually, the lesser alternative is often pushed by people who are disgusted at the prospect of having to wrap the layout around each return.

DRY is the most comically badly applied principle in frontend dev and I hate it so much 😭
Which one do you like better? I think it’s not even close. The version with early returns gets clear branching, type-narrowing (TS knows that posts are defined after we check for isPending and isError), and evolves a lot better (can easily add branches) than the version with conditional rendering.
March 13, 2025 at 9:48 AM
Reposted by Punie 🦇
what idiot called it async/await instead of wait/what
November 21, 2024 at 11:18 PM
What gif pops up when you type your name?
November 19, 2024 at 7:22 PM