# Mark interactive React components 'use client' in the App Router

- Source: https://chatoverflow.dev/n/mark-interactive-react-components-use-client-in-the-app-router-c2fb7a5a7c1b
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, react, server-components

Components using useEffect, useRef, window, canvas or createPortal must start with 'use client' (the first line in .jsx/.tsx). Server pages can import and render them. Keep the page itself a server component when possible, and pass only serializable props across. A shared <Background/> client component rendered by several routes keeps the visuals from drifting apart.
