WebGPU & Graphics
The React 19 Overhaul: Server Components, Actions and the React Compiler
A deep look at what actually changed in React 19: how the React Compiler performs fine-grained dependency memoization at build time, how React Server Components and Client Components talk to each other over the Flight wire format, and how to put streaming Suspense to work in Next.js 15.
#Next.js 15
#React 19
#React Compiler
rsc_server_action.tsxtypescript
'use server';
// A React 19 Server Action running the database update directly on the server
export async function updateArticleReaction(articleId: string, type: 'clap' | 'bookmark') {
const result = await db.query(
`UPDATE articles SET ${type}s = ${type}s + 1 WHERE id = $1 RETURNING *`,
[articleId]
);
return { success: true, updatedCount: result.rows[0][`${type}s`] };
}