How to use SVG in React

Introduction In React, we often use SVG for icons or images. How do we use it efficiently? How do we add a number in the centre of a trolley icon?…

(English) JavaScript Spread vs. Rest Operator

Rất tiếc, mục này chỉ tồn tại ở English.

(English) How to merge arrays in JavaScript

Rất tiếc, mục này chỉ tồn tại ở English.

How to stop YouTube showing related videos

Unfortunately, if you’re like a lot of people and embed YouTube videos on your website, you might have noticed random videos showing up when you pause or get to the end of the video. Sometimes these videos could be from your competitors.

(English) A short interview about An Lac House

Rất tiếc, mục này chỉ tồn tại ở English.

(English) How to prettify HTML documents at the terminal

Rất tiếc, mục này chỉ tồn tại ở English.

Using JavaScript console better

The console object provides access to the debugging console (e.g., the Web console in Firefox). The specifics of how it works vary from browser to browser or server runtimes (Node.js, for example), but there…

Popular shorthand techniques in JavaScript

The shorthand techniques can help you to write optimized code and let you achieve your goal with less coding. Let’s discuss some of the shorthand tips and tricks of JavaScript…

Understanding React Rendering: Part 2 – Improve rendering in React apps

In the recent post about understanding how React renders components, we presented how React renders UI elements and also raised awareness of the fact that React renders everything when only…

Understanding React Rendering: Part 1 – When Does React Re-render UI elements?

One of the key features of React is its ability to update the user interface efficiently by re-rendering components when there are changes to the state or props. However, this…