stuyspec.com icon indicating copy to clipboard operation
stuyspec.com copied to clipboard

Conversion of HOCs to hooks

Open AndySok opened this issue 4 years ago • 0 comments

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.

AndySok avatar Apr 22 '21 15:04 AndySok