You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
I was curious what was the rationale (if there is one) behind having 'component' in the lifecycle methods. To me it seems unnecessary as they are clearly in the context of a component. What would make sense to me though is grouping the lifecycle methods like this:
classExampleextendsReact.Component{lifecycle: {willMount(){...},didMount(){...},willReceiveProps(){...},//especially weird that shouldComponentUpdate is the only method that has 'component' in the middleshouldUpdate(){...},willUpdate(){...},didUpdate(){...},willUnmount(){...},}}