Posts of REACT

The Usages and Traps of useEffect in React

The article discusses the challenges and pitfalls of using useEffect in React, emphasizing its proper application for idempotent view initialization and refresh, cautioning against non-idempotent operations to avoid inconsistencies between data and UI.

Feb 5, 2024
REACT

React 中的 useEffect 用途和一些坑

文章讨论了在 React 中使用 useEffect 的挑战和陷阱,强调其在幂等视图初始化和刷新方面的正确应用,并警告不要进行非幂等操作,以避免数据和 UI 之间的不一致。

Feb 5, 2024
REACT

Should Put All Requests in a Websocket Connection?

Dec 1, 2021
REACT
FRONTEND

Optimization Scheme for React Component Rendering

Nov 29, 2021
REACT
FRONTEND
/ 1