- 博客(1)
- 收藏
- 关注
原创 React中使用antd-mobile组件库中的跑马灯组件报错严格模式问题
通过ceact-react-app搭建的React项目,在使用antd-mobile组件库中的Carousel(跑马灯)组件时,报如下错误:Warning: A string ref, “slider”, has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef()
2020-06-23 20:09:56 2114
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人