React 18 support
Author: orangecodingCreated Jun 2, 2022Updated Mar 21, 2025
react-dates version latest
Describe the bug
React-Dates is using deprecated functions throughout the whole code base like componentWillReceiveProps. This throws lot's of errors like these.
Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps 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.React-Dates not being updated is probably blocking lot's of folks to upgrade to the latest React version. What is the plan for this?
Source: react-dates/react-dates