Why add UNSAFE to the old life cycle _React official documentation below
Update on Asynchronous Rendering – React Blog
The new version removes the above three and adds
getDerivedStateFromProps(), getSnapshotBeforeUpdate() life cycle usage needs to be static