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 has been archived by the owner on Sep 10, 2022. It is now read-only.
The way lifecycle is currently implemented is that it requires the use of this within the lifecycle methods. This goes against the principles of functional programming and introduces impurity into the HOCs.
I propose to introduce alternative lifecycle HOCs that are pure and provide the props/setState as arguments.
The way
lifecycle
is currently implemented is that it requires the use ofthis
within the lifecycle methods. This goes against the principles of functional programming and introduces impurity into the HOCs.I propose to introduce alternative lifecycle HOCs that are pure and provide the props/setState as arguments.
Before:
After:
Is this something that would be welcomed in a Pull Request? Thanks.
The text was updated successfully, but these errors were encountered: