DEV Community

Cover image for Using React Router to Optimize Single Page Applications

Using React Router to Optimize Single Page Applications

Aman Mittal on July 15, 2019

React is often used for building single page applications (SPAs). SPAs tend to have multiple page views. When navigating from one-page view to anot...
Collapse
 
rokkoo profile image
Alfonso

Nice post, easy explanation!
What do you think about using reach-router?

Collapse
 
dance2die profile image
Sung M. Kim • Edited

As a heads-up, reach-router and react-router will merge in the future.

And here is the guideline of which one to choose.

Which Project Should I Choose Today?

Collapse
 
rokkoo profile image
Alfonso

Ohhh nice! Thnx for info =)

Thread Thread
 
dance2die profile image
Sung M. Kim

You're welcome, Alfonso~

Collapse
 
amanhimself profile image
Aman Mittal

Haven’t played with it yet. Will be diving into it and sharing my experience soon :)

Collapse
 
tmns profile image
tmns

nice job! something else worth mentioning is the Redirect component talked about in detail here: dev.to/httpjunkie/programmatically...

Collapse
 
monfernape profile image
Usman Khalil

Hey there Aman, that's a useful revision of concepts. Thank you for such an easy explanation.

Collapse
 
ankit199 profile image
Ankit kumar shukla

is there any way to route with anchor tag