#go back via history NJ13 with beta app routing

5 messages · Page 1 of 1 (latest)

gusty lark
#

you can't use router in server components

#

use a client component instead

gusty lark
#

The useRouter hook allows you to programmatically change routes inside Client Components.

#

Server components don't replace client components.

#

client is the only way to go in this case