Open Bug 1508688 Opened 2 years ago Updated 1 year ago
Remove deprecated React lifecycle methods
Some React component lifecycle methods are going to be removed from React 17 https://hackernoon.com/problematic-react-lifecycle-methods-are-going-away-in-react-17-4216acc7d58b We should make sure our code doesn't use them (currently the patch on https://bugzilla.mozilla.org/show_bug.cgi?id=1479746 uses `componentWillMount`). We should also introduce a linter rule to avoid using these in the future (see https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-deprecated.md).
As a note, on React 17 these methods will still exist, but with a `UNSAFE_` prefix.
You need to log in before you can comment on or make changes to this bug.