Articles

Doumentation and useful knowledge base for day to day development work.

Conditional Object Keys

Add key conditionally with spread operator.

How Does SWR Work?

SWR is a great package from Zeit to help make it easier to fetch remote data with hooks. It is based on the stale-while-revalidate RFC.

Nginx installation

Instructions to install nexing loadbalancer in freshly installed linux/unix distro.

How to use Reduce in JavaScript

The reduce function of an array is one of the most versatile functions in JavaScript. With it you can accomplish a lot of the functions from array and math objects.

Zod Models

Types object modelling using `Zod` schema library

Zustand initial state with props sync

Preload zustand state with props data and sync props changes

Render Object on pre tag

Stringify and render JSON objects, arrays to pre tag