百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#822·react-draggable

React.lazy(() => import('react-draggable')) 失败 TypeScript: Draggable 的类型无法赋值给 ComponentType

作者: paztis创建于 2026年9月16日更新于 2026年9月16日

import type {ComponentType} from 'react'; import {lazy} from 'react'; import type {DraggableProps} from 'react-draggable'; const Draggable = lazy(async () => { const

内容来源: react-grid-layout/react-draggable

查看 GitHub 原文在 GitHub 查看讨论