Published onSeptember 23, 2024How to protect Next.js App Router's page with authorization checkdevreactnext.jstypescriptWhen we don't want anyone to be able to access the page
Published onSeptember 22, 2024How to create infinite scroll with server action and useActionState in Next.jsdevreactnext.jstypescriptNo fetching, no useState, and no API endpoint
Published onJune 7, 2024How to correctly display a list of languagesdevtypescriptjavascriptMany got this wrong.
Published onMay 16, 2024How to correctly split a string into words in JavaScriptdevtypescriptOr why you should stop using the split function!
Published onApril 25, 2024React Strict Mode and Race ConditiondevtypescriptI actually caught a bug thanks to Strict Mode
Published onApril 24, 2024How to cancel fetch on demand OR with timeoutdevtypescriptDon't trust what ChatGPT says
Published onApril 23, 2024You don't need useState in ReactdevreacttypescriptJust like you don't need useEffect
Published onFebruary 5, 2024Make CLI app with ReactdevtypescriptreactcliWhy not right? React is cool!
Published onJanuary 31, 2024Reuse include in Prisma Query with TypeScript satisfiesdevnextjstypescriptTo avoid repetition!
Published onJanuary 16, 2024Understanding dangerouslySetInnerHTML in React: Use Cases and RisksdevtypescriptreactIs it really dangerous?
Published onJanuary 12, 2024Understanding the Subtleties of JavaScript's eval: Local vs. Global ExecutiondevtypescriptIt's weird syntax, I know
Published onJanuary 10, 2024Async Local Storage in Node.jsdevtypescriptIt's like React's Context but for Node.js
Published onJanuary 9, 2024What is "async" must be await-eddevtypescriptSubtle bug that could cause you headache
Published onJanuary 8, 2024Another day, another React Hydration errordevpull-requestreactnext.jstypescriptThis time because of timezone
Published onNovember 11, 2023How to return JSX from React Server Actionsdevpull-requestreactnext.jstypescriptA simple example of how to return JSX from a server action
Published onSeptember 3, 2023What is Discriminated Union in TypeScript?devpull-requestreactnext.jstypescriptA short example of discriminated union
Published onAugust 21, 2023Early return for unhappy pathdevpull-requestreactnext.jstypescriptA pattern I like is to return early for unhappy paths in a function
Published onAugust 9, 2023Use Tailwind's Arbitrary Variantdevpull-requestreactnext.jstypescripttailwind