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.
Never Trust the Client: Architecting a Resilient API
PublishedReading time: 4 minutesIt's important to architect your APIs in a way that can't be spoofed by a mischievous client application.
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.
Adding ETag Support to Remix
PublishedReading time: 6 minutesLearn what an ETag and If-None-Match are, why they're beneficial to your users, and how to implement them in your Remix application quickly and easily with remix-etag.
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.
Markdown API Guide
PublishedReading time: 5 minutesThis API Guide will get you familiar with the Markdown syntax supported by remix-blog.
Lorem ipsum
PublishedReading time: 4 minutesUltrices viverra netus in faucibus, lorem ipsum.