Why: To avoid warnings an conflicts with future versions.
- componentWillReceiveProps has been renamed, and is not recommended for use.
- Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work
What have I done:
Replaced classes to stateless components and used hooks to replace lifecycles.
Upgraded react & react-dom versions
Updated example (removed react-router that was not really needed)
Why: To avoid warnings an conflicts with future versions.
What have I done: