How to Debounce and Throttle Callbacks in VueUpdated May 7, 2023vuecallbackeventStart discussionHow to debounce and throttle watchers and event handlers in Vue components. Continue reading ➞
How to Show/Hide Elements in VuePosted November 3, 2021vuedomelementStart discussionHow to use v-if, v-show and :class to show/hide elements in Vue. Continue reading ➞
Sparse vs Dense Arrays in JavaScriptPosted October 27, 2021javascriptarrayStart discussionWhat's the difference between sparse and dence arrays in JavaScript Continue reading ➞
How to Fill an Array with Initial Values in JavaScriptPosted October 19, 2021javascriptarrayStart discussionHow to initialize an array with initial values in JavaScript using array.fill(), Array.from(), or array.map() Continue reading ➞
Covariance and Contravariance in TypeScriptUpdated January 11, 2022typescriptStart discussionCovariance and contravariance are the concepts behind the subtyping of composable types. Continue reading ➞
What are Higher-Order Functions in JavaScript?Posted October 7, 2021javascriptfunctionStart discussionThe higher-order function accept as arguments or return other functions. Continue reading ➞
How to Use TypeScript with React ComponentsPosted September 29, 2021typescriptreactStart discussionHow to use TypeScript to type React components: validate props, mark props as optional. Continue reading ➞
Index Signatures in TypeScriptUpdated March 21, 2023typescriptobjectStart discussionIndex signatures in TypeScript let's you annotate objects of unknown structure. Continue reading ➞
How to Use React useReducer() HookUpdated March 23, 2023reactusereducerhookStart discussionHow to use useReducer() hook to manage complex state: initial state, action object, dispatch, reducer in React. Continue reading ➞
unknown vs any in TypeScriptUpdated January 6, 2023typescriptunknownanyStart discussionWhat is the difference between unknown and any types in TypeScript. Continue reading ➞