如何警告固定的反应猫头鹰轮旋

发布于 2025-01-27 03:45:42 字数 535 浏览 2 评论 0原文

我试图解决这个错误。请帮助我。 。

​指示您的代码中的错误。参见 https://reaectjs.org/link/link/link/link/unsafe-compongent-lifecycles

  • 将数据获取代码或副作用移动到组件的日期。
  • 如果您要更新道具时,请重新制作您的代码以使用我的技术或将其移至静态从道具中派生的状态。了解更多信息: https://reactjs.org/link/link/link/derived-state

请更新更新以下组件:React Owl Carousel

I am tried to this error .please help me. .how to fixed this warning.. I using react project to owl-carousel and this return warning.. how to solve this warning

warning:

react_devtools_backend.js:3973 Warning: Using UNSAFE _component Will Receive Props in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.

  • Move data fetching code or side effects to component Did Up date.
  • If you're updating state whenever props change, refactor your code to use me techniques or move it to static get Derived State From Props. Learn more at: https://reactjs.org/link/derived-state

Please update the following components: React Owl Carousel

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文