How do I migrate a v3 hook to v4?

Hi @yes_nik && @sauldeleon

I’m trying to migrate to v4 but there is not even a single word about hooks in the migration docs
did you finally solve it? Any tips on how to do it?

Thanks