تابستون داره تموم میشه ها، فرصت‌ها محدودن کلی آفر جذاب در کمپین تابستون🔥👇
۰ ثانیه
۰ دقیقه
۰ ساعت
۱ غلامرضا وحیدهاشمی
npm install react-image-mapper --save
جامعه ری اکت ایجاد شده در ۲۴ اسفند ۱۴۰۱

سلام

با force نصب کردم بعد از اجرا پیغام زیر صادر می‌شود.نقشه روی صفحه می‌آید اما با حرکت موس روی کشورها آن کشور فعال نمی‌شود.

react-dom.development.js:86 Warning: componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.

* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.

Please update the following components: ImageMapper

سلام

این مورد به این دلیل هست که اینجا توضیح داده شده

https://7learn.com/app/product/react-expert/item/7038

مجتبی سوری ۲۶ اسفند ۱۴۰۱، ۰۴:۵۰