doc(hooks): add example to dynamic hook inline comments