How to Write a Hook