Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Remove UNSAFE_ prefix of componentWillUnmount in example #172

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

Mosoc
Copy link

@Mosoc Mosoc commented Apr 15, 2019

The life cycle method named componentWillUnmount is not need UNSAFE_ prefix.
The method which has been considered legacy is UNSAFE_componentWillMount(), actually.

Ref:
https://reactjs.org/docs/react-component.html#componentwillunmount
https://reactjs.org/docs/react-component.html#unsafe_componentwillmount

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant