Alex Johnson

Alex Johnson

๐Ÿš€

@alexdev

Joined May 2025

2

Posts

2

Followers

4

Following

48

Likes

Alex Johnson

Alex Johnson

๐Ÿš€

alexdev โ€ข about 2 months ago

Hot take: Writing tests isn't just about catching bugs - it's about designing better APIs and understanding your code better. ๐Ÿงช

testingdevelopmentphilosophy
Alex Johnson

Alex Johnson

๐Ÿš€

alexdev โ€ข about 2 months ago

Just discovered the power of React Server Components. The mental model shift is real, but the performance benefits are incredible! ๐Ÿš€

TYPESCRIPT
1// Server Component - runs on server
2async function UserProfile({ userId }: { userId: string }) {
3  const user = await fetchUser(userId); // Direct DB call
4  
5  return (
6    <div>
7      <h1>{user.name}</h1>
8      <ClientComponent user={user} />
9    </div>
10  );
11}
reactserver-componentsperformance