react
Curated articles tagged with #react.

Why does useEffect keep running even when dependencies don’t change?
Why does useEffect keep running even when values don’t change? (React explained)

reverse() in React can surprise you — here’s why (and how to fix it)
Array.prototype.reverse() mutates the original array. Inside a React render—especially Strict Mode—that can shuffle your UI. Here’s a safe pattern.

TypeScript + Google Places API (Text Search)
The official @googlemaps/places client lags behind Text Search. This walkthrough builds a small TypeScript wrapper against the current Places API.

IndexedDB vs. localStorage: The Best Way to Store Large Data in the Browser
localStorage tops out around 5MB and only stores strings. IndexedDB is the better fit when you cache images or structured search results in the browser.
Use Lodash's debounce in React applications
Understanding useMemo, useCallback with debounce: Avoiding Unnecessary Function Re-Creations

Ensuring You’re Always Getting the Latest Data from Browser Storage
Let's say, you're implementing a feature that functions based on the browser's storage, such as local storage or session storage.

How to implement a Markdown editor in React?
A practical React Markdown editor setup: what Markdown actually is, which libraries to reach for, and how to wire a live preview without fighting the tree.

How to publish Next.js components to NPM
Have you ever been thinking about how to publish a React Component to a registry such as NPM so that it can be installed and used by several React applications?

How to use BlurHash strings in React, Next.js
BlurHash strings benefit the web performance. But it may not work if we don't know how to use them. Let me show you how.

Fix React Strict Mode renders twice in development
React Strict Mode double-invokes render in development. If you need an action to run once without turning Strict Mode off, this is the escape hatch.

Tại sao nên dùng Next.js?
Có nhiều lí do khiến Next.js lại được ưa chuộng và cộng đồng ngày càng rộng lớn cũng như là liên tục được nâng cấp. Cùng điểm qua một số lí do cùng Thức nhen.