stuyspec.com
stuyspec.com copied to clipboard
Conversion of HOCs to hooks
As quoted from Nicholas' #312, "The code was written in 2016-2017 which makes it ancient by front end standards. Back then the standard way to add functionality to components was Higher Order Components. These days it's hooks and tbh they compose way nicer and work way better with TypeScript. I'd recommend moving off HOCs, especially since libraries are probably deprecating them."
TL;DR we need to migrate away from HOCs and to hooks.