Rishi Bakshirishibakshi.hashnode.dev·Sep 22, 2024Data Fetching: Why Server Actions Outperform Route HandlersOne of the common beginner mistakes I’ve encountered is misunderstanding the difference between when to use route handlers and when to use server actions for data handling in Next.js. With the introduction of server actions and server components in N...Discuss·1 likeYou Don't Know Next.jsserver actions
Rishi Bakshirishibakshi.hashnode.dev·Sep 22, 2024Handling Third-Party Components in Next.js: Avoiding Common MistakesWhen building with Next.js, dealing with third-party components can sometimes cause issues, especially if they aren't correctly configured for client-side rendering. A common mistake developers make is incorrectly using third-party components that re...Discuss·11 likesYou Don't Know Next.jsthird-party-components
Bhavesh Jadhavbhaveshjadhav.hashnode.dev·May 29, 2024Understanding Closures in JavaScriptClosures in JavaScript can seem like a complex concept, but they are fundamental to understanding how the language works. In essence, a closure is a function bundled together with its lexical environment. This means that a function, along with the va...Discuss·10 likesJavascript BasicsJavaScript
Rahimrahimdev.hashnode.dev·Sep 13, 2023You Must Use twMerge + clsx as a Tailwind developerWhat problem do twMerge and clsx solve? As a tailwind user, you may want to add classes conditionally, or you may want to merge some classes without running into conflicts, Let's see the following example: import { ButtonHTMLAttributes } from "react"...Discuss·134 readsTailwind CSS