fixes code example for custom hook in README.md