Popular posts

JavaScript
React
Post image

How to Debounce and Throttle Callbacks in Vue

How to debounce and throttle watchers and event handlers in Vue components.
Continue reading ➞
Post image

How to Show/Hide Elements in Vue

Posted November 3, 2021
How to use v-if, v-show and :class to show/hide elements in Vue.
Continue reading ➞
Post image

Sparse vs Dense Arrays in JavaScript

Posted October 27, 2021
What's the difference between sparse and dence arrays in JavaScript
Continue reading ➞
Post image

How to Fill an Array with Initial Values in JavaScript

Posted October 19, 2021
How to initialize an array with initial values in JavaScript using array.fill(), Array.from(), or array.map()
Continue reading ➞
Post image

Covariance and Contravariance in TypeScript

Updated January 11, 2022
Covariance and contravariance are the concepts behind the subtyping of composable types.
Continue reading ➞
Post image

What are Higher-Order Functions in JavaScript?

The higher-order function accept as arguments or return other functions.
Continue reading ➞
Post image

How to Use TypeScript with React Components

Posted September 29, 2021
How to use TypeScript to type React components: validate props, mark props as optional.
Continue reading ➞
Post image

Index Signatures in TypeScript

Updated March 21, 2023
Index signatures in TypeScript let's you annotate objects of unknown structure.
Continue reading ➞
Post image

How to Use React useReducer() Hook

How to use useReducer() hook to manage complex state: initial state, action object, dispatch, reducer in React.
Continue reading ➞
Post image

unknown vs any in TypeScript

What is the difference between unknown and any types in TypeScript.
Continue reading ➞