Gavin Huynh

Gavin Huynh

6 posts
Understanding Javascript variables declaration (var, let, const), Hosting mechanism and Temporal dead zone (TDZ)
front-end
members

Understanding Javascript variables declaration (var, let, const), Hosting mechanism and Temporal dead zone (TDZ)

var, let and const are used in JavaScript to declare variables, but they differ significantly in their scope, hoisting, and whether they can be reassigned or redeclared. 1. var is the original way to
Gavin Huynh
Gavin Huynh
Understanding Closure in javascript
front-end
members

Understanding Closure in javascript

A closure in JavaScript is the combination of a function bundled together (enclosed) with references to its surrounding state, known as the lexical environment. In simpler terms: A closure allows an i
Gavin Huynh
Gavin Huynh
Memory leaks in React application. How to avoid ?
front-end
members

Memory leaks in React application. How to avoid ?

A memory leak occurs when a program allocates memory for an object or variable but then fails to release it when the object is no longer needed. This causes the application to consume more and more me
Gavin Huynh
Gavin Huynh
Explain React reconciliation
members

Explain React reconciliation

Reconciliation is a process in React that helps it update the UI efficiently. Whenever something changes in your app, like the data or state, React needs to update the web page to reflect those change
Gavin Huynh
Gavin Huynh
Understanding Javascript event propagation: Bubbling and Capturing
members

Understanding Javascript event propagation: Bubbling and Capturing

Event bubbling and capturing, both are propagation mechanisms in DOM(Document Object Model). Both these mechanisms are opposite of each other. Understanding DOM EventsDOM event is a signal that someth
Gavin Huynh
Gavin Huynh
Optimizing rendering performance in React
members

Optimizing rendering performance in React

Re-render happens when React needs to update the app with some new data. Usually, this happens as a result of a user interacting with the app or some external data coming through via an asynchronous r
Gavin Huynh
Gavin Huynh