React

redux-saga-promise

Explores turning saga-driven actions into Promises, evaluates existing approaches, and shares notes on the redux-saga-promise helper.

Feb 2, 2020

Global Exception Interception and Customized Error Handling in Axios

This article explores the implementation of global exception interception and customized error handling in Axios. Through the combination of Axios interceptors and Redux-Saga, it resolves the conflict between global interception and customized handling, achieving unified processing of common exceptions and personalized error handling for specific requests, improving the efficiency and flexibility of frontend exception handling.

Dec 29, 2019

Redux-Saga Helper Functions

Breaks down takeEvery, takeLeading, and takeLatest with behavior notes, logs from experiments, and guidance on when to use each helper.

Dec 28, 2019

Read-only Nature of React Props

This article introduces the read-only nature of React Props, including its advantages, implementation details, and relevant resources. These steps can help improve efficiency when working with React Props' read-only nature.

Dec 22, 2019

Type Issues When Using React with TypeScript

This article introduces type issues when using React with TypeScript, including their advantages, implementation details, and relevant resources. These steps can help improve efficiency when handling React TypeScript type issues.

Oct 23, 2019

Reading Notes: Redux in Action

Key takeaways from Redux in Action plus a year of hands-on Redux work: immutability, async handling, action patterns, component organization, middleware, and performance.

Oct 20, 2019

Governing the Frontend API Layer

From ad‑hoc exported functions to an OO API layer with clear namespaces, shared base paths, and naming conventions.

Oct 16, 2019

React Debugging - Plugins

This article introduces React debugging plugins, including their advantages, implementation details, and relevant resources. These steps can help improve efficiency when using React debugging plugins.

Oct 10, 2019

Redux-Thunk Source Code Walkthrough

Step-by-step walkthrough of redux-thunk’s implementation: how it wires into Redux, how applyMiddleware composes dispatch, and why thunk differs from saga.

Oct 5, 2019

React Project Unit Testing

This article introduces unit testing for React projects, including its advantages, implementation details, and relevant resources. These steps can help improve efficiency when performing unit testing for React projects.

Oct 2, 2019