react-typist
react-typist copied to clipboard
react 17 lifycycle deprecation
thank you for the typist module!
today, i have noticed a deprecation notice whenever i run test (using jest):
console.warn node_modules/react-dom/cjs/react-dom.development.js:11494 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details. * Move data fetching code or side effects to componentDidUpdate. * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps 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: Cursor
here is my system information:
$ npm ls react react-dom react-typist
[email protected] /Users/foo/react
├── [email protected]
├── [email protected]
└── [email protected]
$ node --version
v12.11.0
$ npm --version
6.11.3
i wanted to bring this to your attention before the module will break with never version of react.
for instance, componentWillReceiveProps() is used in Crusor.jsx.
thank you again.
Any update?
Is this gonna be fixed?