2 years ago

#6807

test-img

Car Lautaro

NextJS - Stop refreshing page after some path

I'm trying to combine NextJS with CRA and I would like to use the react router after some path in NextJS. For example:

It's ok the refresh between these two pages:

https://localhost:3000/page1 --> https://localhost:3000/page2 

I don't want the refresh between these two pages:

https://localhost:3000/app/page1 --> https://localhost:3000/app/page2 

I know that the component Link exists: import Link from 'next/link'; But I don't use that component on CRA.

Thanks in advance!

routes

next.js

cra

0 Answers

Your Answer

Accepted video resources