An example of Dynamic APIs are Asynchronous

It has a little bit of new changes on how you access params on server side code(client as well) on Next.js 15. export default async function MediaPage({ params, }: { params: { fileId: string; }; // you could destructure params like this //assume it has path looks like /something/[fileId]/page.tsx const fileId = params.fileId; However, it is giving me a warning something like this Server Error: Route “/galleries/[fileId]” used params.fileId. params should be awaited before using its properties....

November 10, 2024 · 1 min · 122 words · me

History of Rendering in Web

Introduction As I was learning Server Side Rendering, I noticed that I didn’t pay attention to the detail or how we manage to render in different way and how it has changed in the past. Ill go over the different type of rendering technology. terminology Client : I refer to the user’s browner on their device. It could be PC or smartphone. Server : Organization or individual own or rent and run server....

November 1, 2023 · 3 min · 501 words · me