KIPRI
KIPRI
@kipri.dev
Reposted by KIPRI
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 8:12 AM
Hello, world!
November 10, 2024 at 8:28 PM