关于typescript:React18-FC-props没有children类型问题 jiezi 1 年前 import type {FC, PropsWithChildren} from 'react'; export type FsFC<T = any> = FC<PropsWithChildren<T>>;
import type {FC, PropsWithChildren} from 'react'; export type FsFC<T = any> = FC<PropsWithChildren<T>>;