The React source code resolves completeWork and HostText updates, and the HostComponent renders several times. The "first render phase" will be covered in the next...
Use the same syntax for useMome, useCallback. Both hooks return cached values, useMemo returns cached variables, useCallback returns cached functions. React.memo is a higher-order component....
I wrote some examples about code-spliting a long time ago. With the development of the technical library, this time I cleaned up the code-spliting used...
This setState (source code involved) is written for the act15 version, i.e. Fiber is not involved; For the convenience of reading and writing, I choose...
In this article, we will take a TEST-driven development (TDD) approach from user stories to product development of a React application. Also, we will use...
React-hooks are the react-hooks API added after Update 16.8. The purpose of this API is to increase code reusability, logic, and address the problem that...
We'll follow the React source architecture, but without all the optimizations and non-essential features, and rewrite React from scratch step by step. The author named...
When comparing two trees, React first compares the root nodes of the two trees. Different types of root node elements have different shapes. When the...
This series is divided into three parts: Framework Implementation, Framework Usage and Data Flow Philosophy. These three articles are my periodic summaries of data flow...
Context provides a local global scope. Using Context eliminates the need to manually pass props layer by layer. UseContext imports the useContext hook function, which...