Recompose is a library that provides an assortment of higher order components that let's you "enhance" React functional components, so to speak, and do things all sort of things - including but not limited to local state and lifecycle hooks.
For more details on why Recompose can be useful, take a look at this comment, from user "arendjr":
/ dj0spvl
Episode Source Code: https://github.com/cassiozen/ReactCas...
Recompose Docs: https://github.com/acdlite/recompose/...
Music by www.bensound.com