摘要:
Containerization of State within Child React Components The changing of state is the reason why components re-render. If you lift all of your state up 阅读全文
摘要:
Sometimes one line of code can eliminate 50% of your bundle size. As you'll see in this video, we can remove "dead code" from modules we are working w 阅读全文
摘要:
Let's see when we have following code: interface Animal { name: string; } interface Human { firstName: string; lastName: string; } const getDisplayNam 阅读全文
摘要:
For example we have a type like this: type Obj = { a: "a"; a2: "a2"; a3: "a3"; b: "b"; b1: "b1"; b2: "b2"; }; We want to constrct a new type which por 阅读全文
摘要:
For example we have two types, we want to find the shared props in both: interface UserBase { email: string image: string | null username: string } in 阅读全文