Workbench

A collection of long form essays about tech. · 65

Essay

Hugo image gallery shortcode

Here’s a custom Hugo shortcode that creates an image gallery in a masonry style using GLightbox. This approach will display images from a specified folder in a …

Read

Essay

View posts grouped by month in Hugo

A few months ago, I wrote a post on creating a feed page to list all posts on my Hugo website in a card format with pagination. Even though I am able to view …

Read

Essay

Understanding useRef

useRef is a powerful React Hook that allows you to create and manage mutable references that persist between renders, Unlike state, changing the value of a …

Read

Essay

Tiny React Apps

This is a collection of tiny apps built with React, designed to explore and learn React along with its associated libraries. Each project serves as a hands-on …

Read

Essay

Understanding useCallback

I hope you know what is useMemo and understood that it caches the values between re-renders. `useCallback` is similar to this and it caches a function instead …

Read

Essay

React Notebook

An online handbook about React that will cover all the basic topics. Unlike a physical handbook, this online book will evolve over time as I continue to learn …

Read

Essay

Understanding useMemo

React ensures your user interface stays in sync with the application state by using a technique called re-rendering. During re-renders, React compares the …

Read

Essay

Notes about Redux

Redux is a JavaScript library that can be used with various JavaScript frameworks, including React, Angular, Vue, and Vanilla JS. It serves as a state …

Read

Essay

How to deploy React app in Firebase

A React Single Page Application (SPA) is essentially a static website and can be easily hosted using platforms like Firebase or Netlify. Here I am explaining …

Read

Essay

Understanding React custom Hooks

In React there are several built-in Hooks like `useState`, `useEffect`, and `useContext`. Sometime you need to create your own Hooks for specific purpose like …

Read

Essay

Understanding React Context

Traditionally, you pass information from a parent component to child component via props in React. But data passing through this props drilling can make your …

Read

Essay

Job commands in Oracle PL/SQL

Here I am listing the commands using for creating, running, and fetching the scheduler jobs in Oracle database for easy reference. Start, Stop, and Delete jobs …

Read