What should I know about how to implement page router dev doc notes into an app router app?
Answered
Dwarf Hotot posted this in #help-forum
Dwarf HototOP
I'm learning to code and I noticed tons of docs are still using pages router such as Stripe. What is the best approach to implementing those tools/apis into my app? Thanks
Answered by B33fb0n3
The best thing to do is to know what and why third partys use specific stuff and then you know the corresponding part in the app router for it. Then just use the code of the third party in the correct place of your app router
9 Replies
@Dwarf Hotot I'm learning to code and I noticed tons of docs are still using pages router such as Stripe. What is the best approach to implementing those tools/apis into my app? Thanks
The best thing to do is to know what and why third partys use specific stuff and then you know the corresponding part in the app router for it. Then just use the code of the third party in the correct place of your app router
Answer
@B33fb0n3 The best thing to do is to know what and why third partys use specific stuff and then you know the corresponding part in the app router for it. Then just use the code of the third party in the correct place of your app router
Dwarf HototOP
Got it so just basically understand things better. Do you know when the docs may be updated to app router?
It depends on what the docs are your referring to. Anything external for vercel and or nextjs is subject to updating when they feel like it š
Remember that a lot not all of the issues can be resolved by using āuse clientā on the page though I would try to understand why thatās needed but in a pinch when referring to old documentation Iāll get the initial setup working using the use client directive then work myself backwards to see what actually needs to be client side.
@Dwarf Hotot Got it so just basically understand things better. Do you know when the docs may be updated to app router?
if you are just talking about stripe, there are some updated docs (for app router) already. But yea, that's basically it
Dwarf HototOP
@Jboncz @B33fb0n3 gotcha. Thank you both, I also have been using claude to do stuff so I'm glad that also exists for a beginner
@B33fb0n3 if you are just talking about stripe, there are some updated docs (for app router) already. But yea, that's basically it
Dwarf HototOP
Btw where is the updated doc?
@Dwarf Hotot Btw where is the updated doc?
when I see it in the future I will tell you š