Tag - REACT

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.

5 February, 2024
REACT

React 中的 useEffect 用途和一些坑

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

5 February, 2024
REACT

Should Put All Requests in a Websocket Connection?

1 December, 2021
REACT
FRONTEND DEV

Optimization Scheme for React Component Rendering

29 November, 2021
REACT
FRONTEND DEV
/ 1