spiffy.tech
  • home
  • about
  • drop me a line
rss
Creating a type from nested interface properties in TypeScript

In Typescript you can create a new type from deep properties on an interface.

A lazy-loading higher-order component for Svelte

I show how to lazy-load content in Svelte by wrapping your lazy content inside a component that detects when it's visible

Creating a bottom nav with CSS Flexbox

How to create a bottom nav with just Flexbox and pure CSS

Setting up Sapper with Netlify CMS

You can create a static site with a web-based CMS using Netlify and Sapper, hosted for free!

GraphQL Subscriptions with Vanilla JS

Here's a lightweight way to make GraphQL queries that supports subscriptions, without heavy client libraries.

A Minimal Svelte Router

Here is a minimal router for Svelte v3 using Page.js.

Understanding nested for loops in JavaScript

Are you having trouble understanding nested for loops in JavaScript? Just can't get it into your head? Here's how they work.

Lodash _.reduce returning undefined

Say you're using Lodash's _.reduce method to check each item in an array, but it's returning 'undefined'. Here's the fix!

Handling multiple API calls in a Vuex action

Do you find yourself making more than one API call in your Vuex actions? Wondering the best way to handle this situation? Read on for a fix!

Pages