Math.max() without Arguments
UpdatedOriginally publishedReading time: 3 minutesIn JavaScript, Math.max() without any arguments returns -Infinity. But why?
Conditional Rendering in React using Ternaries and Logical AND
UpdatedOriginally publishedReading time: 5 minutesIf you are explicit and always create a boolean, there's no reason not to use a logical AND vs. a ternary for conditional rendering.
You may be doing try/catch all wrong
PublishedReading time: 3 minutesWhat if I told you that you're doing try/catch in JavaScript all wrong? I'll discuss three things that you should be doing differently in your try/catch blocks.
I code using const (and why you should too)
UpdatedOriginally publishedReading time: 4 minutesThe main benefit of using const vs let is signaling intent.
SSR Date Formatting in Remix using the User's Locale
PublishedReading time: 5 minutesHow I achieved consistent date formatting in Remix on both client side and server side rendered React using a LocaleProvider and Intl.DateTimeFormat.
Clean Code vs. Dirty Code: React Best Practices
UpdatedOriginally publishedReading time: 12 minutesClean code is a consistent style of programming that makes your code easier to write, read, and maintain. Discover how to make your React code cleaner using easy-to-follow examples.
Intro to React Hooks
UpdatedOriginally publishedReading time: 10 minutesReact Hooks are live in production. Learn what you need to know to get started using and testing them today.
Spread Love: A Look into JavaScript's Rest and Spread Syntax
UpdatedOriginally publishedReading time: 7 minutesLearn how the new JavaScript rest and spread syntax can simplify your code and reduce visual clutter.