Make hooks class members