redux tutorial
Title: redux tutorial
Foreword: I will encounter redux in the process of learning react. When I learn redux, I often feel that I remember it, but when I use it, I always don't know how to write it, or I always make mistakes when I can use it, so I plan to write a tutorial on redux and record my experience in the process of learning and using i ...
Added by jeremy0 on Sat, 11 Dec 2021 10:33:50 +0200
TypeScript official manual translation plan [XIII]: module
Note: at present, there is no Chinese translation of the latest official documents of TypeScript on the Internet, so there is such a translation plan. Because I am also a beginner of TypeScript, I can't guarantee the 100% accuracy of translation. If there are errors, please point them out in the comment area;Translation content: the tentative t ...
Added by monloi on Fri, 10 Dec 2021 13:43:06 +0200
This is what TS type filtering in React and Nextjs used to do~
Hello, everyone. I'm zero one. I'm sure you've seen all kinds of coquettish TS writing methods when reading the code written by colleagues or the code of excellent open source libraries. You can't understand it without taking some time. If it were us, you might finish any directly, but when the project volume becomes larger, you will find that ...
Added by efegue on Wed, 08 Dec 2021 05:22:45 +0200
Template literal type of TypeScript
The official documents of TypeScript have already been updated, but the Chinese documents I can find are still in the older version. Therefore, some newly added and revised chapters are translated and sorted out.This translation is compiled from "TypeScript Handbook" Template Literal Types "Chapter.This article is not translated ...
Added by selsdon on Wed, 08 Dec 2021 02:50:43 +0200
Creating private members in JavaScript
The private keyword in an object-oriented programming language is an access modifier that can be used to make properties and methods accessible only in declared classes. This makes it easy to hide the underlying logic, which should be hidden and should not interact with the outside of the class.
But how do you implement similar functions in ...
Added by chuspy on Wed, 08 Dec 2021 02:18:35 +0200
I open source a lightweight ruler plug-in for the web!
prefaceFront end colleagues who have worked as web side editors will more or less contact ruler plug-ins, similar to plug-ins in ps or PPT software.Older web plug-ins, such as jqury, produce a lot of dom, so they write a ruler drawn with pure TS and canvas, which does not rely on any third-party library. The usage of the document is as follows. ...
Added by gio2k on Sun, 05 Dec 2021 16:30:55 +0200
TypeScript official manual translation plan [Xi]: type control - template literal type
Note: at present, there is no Chinese translation of the latest official documents of TypeScript on the Internet, so there is such a translation plan. Because I am also a beginner of TypeScript, I can't guarantee the 100% accuracy of translation. If there are errors, please point them out in the comment area;Translation content: the tentative t ...
Added by xtheonex on Sat, 04 Dec 2021 06:12:49 +0200
Indexed Access Types of TypeScript
prefaceThe official documents of TypeScript have already been updated, but the Chinese documents I can find are still in the older version. Therefore, some newly added and revised chapters are translated and sorted out.This article is compiled from "TypeScript Handbook" Indexed Access Types "Chapter.This article is not translated ...
Added by garry_224 on Fri, 26 Nov 2021 01:04:58 +0200
TypeScript official manual translation plan [2]: common type
Note: at present, there is no Chinese translation of the latest official documents of TypeScript on the Internet, so there is such a translation plan. Because I am also a beginner of TypeScript, I can't guarantee the 100% accuracy of translation. If there are errors, please point them out in the comment area;Translation content: the tentative t ...
Added by sethcox on Sat, 20 Nov 2021 20:54:17 +0200
TypeScript basic data type
catalogue
preface
variable
Boolean
Digital type
String type
undefined and null types
undefined type
null type
void type
any type
unknown type
never type
Array type
Tuple type
object type
Enumeration type
Data type enumeration
Character enumeration
Heterogeneous enumeration
Multiple types
summary
preface
TypeScrip ...
Added by marky2coats on Sat, 13 Nov 2021 01:47:09 +0200