How to Mimic Nominal Typing in TypeScript

You can overcome drawbacks of structural typing in TypeScript by creating nominal types with a little bit of extra code.

Different Types of Queue

Queues are specifically designed to operate in a FIFO context, where elements are inserted into one end of the container and extracted from the other.

Latest Updates on React 18

Expecting opt-in out-of-the-box improvements like automatic batching, concurrent features, and new Suspense SSR architecture.

Mar 13, 2022#react#react-18

React Component Patterns

Essential design patterns to create React components like hooks, provider, context, render props, higher order components, or compound components.

Mar 12, 2022#react#patterns

TypeScript Structural Typing

If the type is shaped like a duck, it is a duck. If a goose has all the same attributes as a duck, then it also is a duck.

TypeScript Type Aliases vs Interfaces

The key distinction is that a type cannot be re-opened to add new properties vs an interface which is always extendable.

Mar 08, 2022#typescript

React Event Handling

Handling events in React is simple but you have to careful about context inside event handlers because JavaScript class method not bound by default.

Feb 17, 2022#react#javascript

Cracking the Frontend Interview, Part 1: Overview

What to focus technically when preparing for the frontend developer interview.

Normalize.CSS - The Best CSS Reset Library in 2022

Precisely targets only the styles that need normalizing to make browsers render all elements more consistently.

Feb 06, 2022#css#css-resets

Data Structures Used in Competitive Programming

It's important to learn basic data structures inside out, otherwise understanding higher level structures will be difficult.