Handwritten simple version of React to thoroughly understand the fiber architecture
The biggest difference between before and after React 16 is that 16 introduces fiber and implements hooks based on fiber. I mention fiber all day. What is fiber? What is its relationship with vdom?
Instead of looking at various explanations, it's better to write a fiber version of React. When you can realize it, you must fully understand it.
...
Added by chadbobb on Tue, 15 Feb 2022 04:15:21 +0200
TS type gymnastics: illustrating a complex advanced type
Let's do a difficult gymnastics today. It will comprehensively use patterns matching, construction, recursion and other routines, which is very helpful to improve the level of type programming.
The advanced types we want to implement are as follows:
Its type parameter is the parameter string query string, which will return the parsed ...
Added by gwydionwaters on Mon, 14 Feb 2022 05:54:35 +0200
Using Lambda expression to realize super sorting function
In the process of system development, sorting data is a very common scenario. Generally speaking, we can adopt two ways:
With the help of the sorting function of the storage system (supported by SQL, NoSQL and NewSQL), the query result is the ordered result The query results are unordered data and sorted in memory. Today I want to talk about t ...
Added by Rother2005 on Sat, 29 Jan 2022 22:33:32 +0200
What is a crawler? What is the principle of Python crawler
preface In short, the Internet is a large network composed of sites and network devices. We visit sites through the browser, and the site returns HTML, JS and CSS codes to the browser. These codes are parsed and rendered by the browser to present colorful web pages in front of us;
1, What is a reptile? If we compare the Internet to a large spi ...
Added by raku on Tue, 18 Jan 2022 09:18:43 +0200
After the session expires, the token is refreshed and the interface is re requested (subscription publishing mode)
demand
In a page, when the request fails and 302 is returned, judge whether the interface expires or the login expires. If the interface expires, request a new token, and then take a new token to initiate the request again
thinking
At first, I thought of a black Technology (to ...
Added by irishpeck on Thu, 09 Dec 2021 02:42:06 +0200
React performance optimization
preface React is a class library for building user interface developed by Facebook. It focuses on performance from the beginning of design, and can take some strategies when using it. Then our website performance is more optimized. The following are some optimization methods I usually use, hoping to help you!
Code Splitting Code Splitting can ...
Added by mzshah on Tue, 23 Nov 2021 05:37:38 +0200