react-spring/web + children not defined

@react-spring/web + children not defined

This is a reported bug in @react-spring/web that is still open at the time of writing.

Deftunk recommends creating a custom.d.ts file and overriding the type:

javascript 复制代码
import reactSpring from "@react-spring/web";
declare module "@react-spring/web" {
  const animated = {
    children: React.ReactNode,
    ...reactSpring.animated,
  };
}
相关推荐
JudithHuang几秒前
React 路由:React Router
前端·react.js·前端框架
赵得C2 分钟前
创建 SVG 图标预览页面:从零实现到解决 CORS 问题
前端·javascript·html
IT_陈寒8 分钟前
Java的HashMap线程安全问题让我深夜掉光了头发
前端·人工智能·后端
三掌柜66612 分钟前
ArkWeb 手记 04|Web 返回键别再一刀切
前端·harmonyos
Wx-bishekaifayuan12 分钟前
Springcloud中学在线学习平台58883-计算机课程设计、毕业设计
java·vue.js·spring boot·学习·spring·spring cloud·课程设计
光影少年17 分钟前
RN与Flutter架构区别
前端·flutter·react native·react.js·架构·node.js
peter676824 分钟前
css学习小结
前端·css·学习
liangshanbo121525 分钟前
什么是CSS原子化?它的优劣势是什么?
前端·css·tensorflow·css原子化
.道阻且长.27 分钟前
C++ 11:可变参数模板
前端·c++·算法
IMPYLH31 分钟前
HTML 的 <th> 元素
前端·html