上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 496 下一页
摘要: 1. React.ReactNode import { useState } from "react"; import { createPortal } from "react-dom"; import { Equal, Expect } from "../helpers/type-utils"; 阅读全文
posted @ 2023-08-28 20:37 Zhentiw 阅读(26) 评论(0) 推荐(0)
摘要: Navigating to the type definition for lazy by CMD + click in local VS Code, or in the DefinitelyTyped repo. We can see the following definition: funct 阅读全文
posted @ 2023-08-28 17:54 Zhentiw 阅读(91) 评论(0) 推荐(0)
摘要: # Create a node cli ## Init a project Run: `npm run init` Let's say we want to create a cli command call `note-dev`, let's add this into `package.json 阅读全文
posted @ 2023-08-26 16:15 Zhentiw 阅读(37) 评论(0) 推荐(0)
摘要: An LRU (Least Recently Used) cache is a type of data structure that maintains a limited size of items and evicts the least recently accessed item when 阅读全文
posted @ 2023-08-25 02:26 Zhentiw 阅读(55) 评论(0) 推荐(0)
摘要: I want to add a common attribute to dom element globally: <> <div testId="123" /> <audio testId="123" /> <video testId="123" /> <a testId="123" /> <ab 阅读全文
posted @ 2023-08-24 14:52 Zhentiw 阅读(27) 评论(0) 推荐(0)
摘要: The ElementTypetype helper is a bit unusal because it accepts some props and derives what types of components would be able to recieve those props. He 阅读全文
posted @ 2023-08-23 14:05 Zhentiw 阅读(243) 评论(0) 推荐(0)
摘要: interface IntrinsicElements { // HTML a: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>; abbr: React.Detail 阅读全文
posted @ 2023-08-23 13:53 Zhentiw 阅读(210) 评论(1) 推荐(0)
摘要: This is ReactNode: type ReactNode = | ReactElement | string | number | ReactFragment | ReactPortal | boolean | null | undefined This is React.ReactEle 阅读全文
posted @ 2023-08-22 15:37 Zhentiw 阅读(44) 评论(0) 推荐(0)
摘要: Run playwright A basic playwright code example: import {test, expect} from "@playwright/test" test("Math works", () => { expect(1+2).toBe(2); }); // O 阅读全文
posted @ 2023-08-22 14:47 Zhentiw 阅读(68) 评论(0) 推荐(0)
摘要: export = React; export as namespace React; declare namespace React { // // React Elements // type ElementType<P = any> = { [K in keyof JSX.IntrinsicEl 阅读全文
posted @ 2023-08-21 15:03 Zhentiw 阅读(116) 评论(0) 推荐(0)
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 496 下一页