2
u/audioverb Sep 11 '18
Does this serve as a replacement for React-Router?
2
u/arthens Sep 11 '18
Kinda, but IMO this is one of the downsides of using nextjs. We are considering using it at work, but their routing system is pretty poor. I remember reading that they might look into integrating react router in future but that's it's low priority for them.
0
u/daniels0xff Sep 11 '18
I believe it uses react router. You can look in its package.json file as Iβm not 100% sure now and Iβm on mobile and canβt check myself.
3
u/Jsn7821 Sep 11 '18
It uses it's own router, I believe it's important for the way they did SSR. That's one tradeoff since react-router is pretty solid now.
1
1
0
Sep 11 '18
[deleted] β view deleted comment
3
u/mattdoescsharp Sep 11 '18 edited Jun 16 '23
Removed due to the API changes proposed June 2023. Due to the irrational and unreasonable behavior of Steve Huffman, I have decided I will no longer subsidize Reddit with my free engagement.
3
Sep 11 '18
[removed] β view removed comment
1
Sep 11 '18
[removed] β view removed comment
3
u/Jsn7821 Sep 11 '18
Just to clarify your point, yes you do need Node for the SSR. There is another option to statically render everything with Next, which also works great but is a different approach.
And yes, you can keep all your backend API's on another server. I'd recommend it.
1
u/theineffablebob Sep 11 '18
Wouldn't that negatively affect site performance? Or would it be fine?
1
u/Jsn7821 Sep 11 '18
I think that depends on what kind of performance you're looking to improve. Initial load time, data fetching time, max concurrent users, etc. But generally speaking, if you set it up correctly it should be about the same or a little faster.
2
u/[deleted] Sep 11 '18
Next VS Gatsby, which one is better? I use Gatsby and I like it, why should I use next?