Posts
All the articles I've posted.
Printing Page on Chrome Desktop and Android
Posted on:March 20, 2023 at 12:58 PMUse window.print API to print a document on Chrome Desktop and Android, and the differences in the sequence of printing events.
Adapter Design Pattern
Posted on:September 23, 2022 at 03:22 PMThe adapter pattern is a design pattern used to bridge two incompatible interfaces, allowing an existing class interface to be used as another. This article provides an example of using the adapter pattern.
Find neighbours in 2D grid
Posted on:June 6, 2022 at 04:06 AMFinding all the four neighbours and extending it to eight neighbours
Representing 2D array as 1D array
Posted on:January 6, 2022 at 04:06 AMRepresenting 2D array as 1D array
Observer Pattern
Posted on:December 6, 2021 at 05:02 PMObserver Pattern with example
Hook custom hook for data fetching
Posted on:November 1, 2021 at 02:25 PMUsing custom hook for data fetching
Strategy Design Pattern
Posted on:October 8, 2021 at 10:36 AMStrategy Design pattern with example
State Management In Pure React
Posted on:September 7, 2021 at 01:32 PMState management in react without using any external library
React custom hook for form state
Posted on:August 31, 2021 at 06:25 PMUsing custom react hook to maintain form's state
Middleware with Async Thunk
Posted on:August 28, 2021 at 02:25 PMHandling async operation inside react's useReducer