diff --git a/docs/content/2.guide/4.going-further/2.hooks.md b/docs/content/2.guide/4.going-further/2.hooks.md index 959363311c6..636db5e77eb 100644 --- a/docs/content/2.guide/4.going-further/2.hooks.md +++ b/docs/content/2.guide/4.going-further/2.hooks.md @@ -55,14 +55,14 @@ These hooks are available for [Nitro plugins](https://nitro.unjs.io/guide/advanc ```js [~/server/plugins/test.ts] export default defineNitroPlugin((nitroApp) => { nitroApp.hooks.hook('render:html', (html, { event }) => { - console.log('render:html', html); - html.bodyAppend.push('
Appended by custom plugin'); - }); + console.log('render:html', html) + html.bodyAppend.push('
Appended by custom plugin') + }) nitroApp.hooks.hook('render:response', (response, { event }) => { - console.log('render:response', response); - }); -}); + console.log('render:response', response) + }) +}) ``` ::alert{icon=👉}