Alex Johnson
๐
@alexdev
Joined May 2025
2
Posts
2
Followers
4
Following
48
Likes
Hot take: Writing tests isn't just about catching bugs - it's about designing better APIs and understanding your code better. ๐งช
testingdevelopmentphilosophy
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