Description
After installing a new project using React CLI I got two warnings related to the deprecation of React hooks.
We should check if there's a way to avoid showing those warnings without breaking the backward compatibility for older React versions.
Warnings that appear
react-dom.development.js:67 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: HotTable
react-dom.development.js:67 Warning: componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate 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: HotTable
Your environment
- React wrapper version: 9.0.2
- Handsontable version: 9.0.2
- React version: 17.0.2
- Browser Name and version: Chrome 94
- Operating System: Windows 10
Inform Zen, and Zen
Description
After installing a new project using React CLI I got two warnings related to the deprecation of React hooks.
We should check if there's a way to avoid showing those warnings without breaking the backward compatibility for older React versions.
Warnings that appear
Your environment
Inform Zen, and Zen