Snippets

Hello and welcome to the Snippets section. This space is dedicated for documenting code I find interesting, notes for time travelling(reference for future me), consolidated Stack Overflow answers, Tips & Tricks, and some productivity hacks.

21 Posts
Jun 11, 2021⏲ Async/Await and handling errors
  • Async Await
  • JavaScript
Jun 10, 2021⛓ Revisiting Arrays in JavaScript
  • Array
  • JavaScript
Jun 8, 2021🔎 Syntax Error: Expected Name, found <EOF>
  • Gatsby
  • GraphQL
  • JavaScript
  • React
Jun 7, 2021🧲 Using Context with a HoC
  • Context Providers
  • Higher Order Components
  • JavaScript
  • React
Jun 5, 2021🛠 JavaScript Utils: Part One
  • JS Utils
  • JavaScript
  • Snippets
Jun 4, 2021🛰 Analytics using Beacon API and Ping
  • Analytics
  • JavaScript
  • User Tracking
Jun 3, 2021🎚 Switch to Object Literals
  • JavaScript
  • Objects
  • Switch Statement
Jun 2, 2021🏗 Builder Pattern with a Fluent API in JavaScript
  • Builder Pattern
  • Design Pattern
  • Destructuring
  • JavaScript
Jun 1, 2021🔥 Efficient workflow with ESLint and Prettier
  • Code formatting
  • ESLint
  • JavaScript
  • Prettier
  • React
May 31, 2021📥 Sharing state in Gatsby
  • Gatsby
  • JavaScript
  • React
May 30, 2021🌐 Holy Grail layouts in Gatsby
  • Gatsby
  • JavaScript
  • React
May 29, 2021📭 Use 'http://local.dev' instead of localhost
  • DNS
  • Networking
  • Reverse Proxy
May 27, 2021♼ Writing re-usable logic with React Hooks
  • JavaScript
  • React
  • React Hooks
May 26, 2021‼️ The difference between String.match() and String.matchAll()
  • JavaScript
  • Regular Expression
  • String
May 25, 2021🍪 Setting Cookies in Next.js
  • Cookies
  • JavaScript
  • Next.js
May 24, 2021🌍 How to get Local IP address on a Mac
  • MacOS
  • Networking
May 23, 2021👋🏽 Meet the new Array.at() method
  • Array
  • JavaScript
May 23, 2021👨🏽‍💻 How to merge Arrays in JavaScript
  • Array
  • JavaScript
May 22, 2021🛠 Customize CSS Loader options in Next.js
  • JavaScript
  • Next.js
  • css-loader
May 20, 2021🧟‍♂️ How to keep a Docker container alive
  • Docker
  • Tips & Tricks
May 14, 2021🎨 Using global class selectors in CSS Modules
  • CSS
  • CSS Modules
  • TIL