Creating Immutable Objects in JavaScriptEver copied an object, tweaked a property, and then realized both the OG and the copy got changed? Yeah, same. Objects stand as the cornerstone of JavaScript, forming one of its six primary types. By default, objects are mutable — their properties an...Sep 11, 2024 · 13 min readctrlaltmonique.hashnode.dev
How to Insert Usernames into Profiles Table Using Supabase TriggersIf you’ve ever worked with user signups, you know that automating profile creation can save you a lot of hassle. Instead of manually handling usernames and profiles after every new signup, why not let Supabase do the heavy lifting? In this quick guid...Aug 29, 2024 · 4 min readctrlaltmonique.hashnode.dev
How to Use React Hook Form + Zod with Next.js Server ActionsHandling form validations natively in React can be cumbersome and time-consuming—something you’ve probably experienced firsthand. Fortunately, by using React Hook Form and Zod together, you can streamline this process and kiss your struggles goodbye....Aug 27, 2024 · 12 min readctrlaltmonique.hashnode.dev
How to Create a Custom File Upload Button in React with TypeScriptCreating a custom file upload button in React allows for more control over styling and user experience compared to the default file input. However, styling the default file input is often a hassle. No worries, though! This tutorial will guide you thr...Jun 23, 2024 · 3 min readctrlaltmonique.hashnode.dev
Type-Safe State Management with React's Built In HooksOccasionally, resorting to an external state manager in our React projects might feel like bringing a bazooka to a knife fight—effective, but perhaps a bit excessive. Often, what we truly seek is a means to store our global state outside individual c...Jun 7, 2024 · 12 min readctrlaltmonique.hashnode.dev