All Posts

  • Published on
    When working with Next.js and need to fetch data on each request, the function to turn to is getServerSideProps. Using getServerSideProps in Next.js provides several advantages. It ensures that data is always up-to-date and serves as an excellent choice for pages with frequently changing information. The function signature is straightforward, and the context parameter offers access to various request-specific details.
  • Published on
    When working with React 19, the introduction of the useActionState hook brings significant improvements to managing asynchronous operations within forms. Recently available in React's Canary and experimental channels, this hook is designed to update the state based on the result of form actions. This makes it easier to handle async functions directly within form components, enhancing the user experience.
  • Published on
    In the realm of modern web development, optimizing user experiences in web applications is a priority. One powerful tool I often turn to is the useOptimistic React Hook. This feature lets developers update the UI in a responsive manner while asynchronous actions, like network requests, are in progress. This capability is critical for creating seamless interfaces that users appreciate.
  • Published on
    Next.js 15 RC is the latest version of the popular React framework that has been released by Vercel. This version comes with various new features and improvements that will help developers build faster and more efficient web applications. One of the main improvements that Next.js 15 RC brings is the support for React 19 RC, which includes new features for both the client and server like Actions.