Coding task · Vue.js course · Module 15: TypeScript & Nuxt
Write a composable that safely uses window in an SSR context.
Use onMounted to access window - an object unavailable on the server.