Tag - REACT

Posts of REACT

The Usages and traps of useEffect in React

5 February, 2024
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.

React 中的 useEffect 用途和一些坑

5 February, 2024
REACT

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

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