WIP: react hooks (for profile page)
This is in response to @luandro 's prompt about react hooks. I've done a conversion of on of the pages to see what it's like to use.
TL;DR I still hit unmounting problems and some initial searches on the web suggest there aren't tidy solutions easily at hand. e.g. :
- https://medium.com/@shanplourde/avoid-react-state-update-warnings-on-unmounted-components-bcecf054e953
- https://stackoverflow.com/questions/56320684/how-remember-that-a-react-hooks-component-is-unmounted-so-can-avoid-state-chang
- https://daviseford.com/blog/2019/07/11/react-hooks-check-if-mounted.html