Personally I think hooks in React are toxic.
The peanut gallery squees when they see them because they think they are "functional" because there is no "." involved, but it is side effect city, it even matters what order these functions get called.
The peanut gallery squees when they see them because they think they are "functional" because there is no "." involved, but it is side effect city, it even matters what order these functions get called.