react-unsafe-component-lifecycles waringSee original GitHub issue
Hi @justinrhodes1, thanks for library.
When I test components that include the library I am getting the following warning
Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-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 17.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: Tooltip
It is possible to update it to fix it.
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
I have created a package that fix this bug and is based on this package. Try:
npm i react-power-tooltip-hooks