Next.js Discord

Discord Forum

Force using 'use client' on Pages Router App

Unanswered
Avivperets posted this in #help-forum
Open in Discord
I have an app that already built in Pages Router App, and the current state is i can use client side component anytime without explicit declare it as we do in App Router,
for me i wish it could be possible that i will have to declare 'use client' to make sure that by default I'm using server side,
i know it doesnt sound much i should understand my own component rendering tree but just for my own convivence i wish it could be possible,
my question if there is way to make it happens ?

0 Replies