DylanSp / tic-tac-toe-react

A simple client-side Tic-Tac-Toe app for learning/practicing React.
MIT License
0 stars 1 forks source link

Deal with componentWillUpdate deprecation/removal #36

Closed DylanSp closed 2 years ago

DylanSp commented 2 years ago

Warning in development mode:

react-dom.development.js:86 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: Cell

The Cell component needs to get updated.