DEV Community

Sahil Thakur
Sahil Thakur

Posted on

Protected routes in ReactJS

Hey, want to learn an easy and short way of implementing protected routes in React ? Please take a look at my article if you want to.

https://easyontheweb.com/protected-routes-in-react/

Top comments (2)

Collapse
 
dance2die profile image
Sung M. Kim

Hi Sahil,

We encourage the entire article to be published on DEV.to (if you have proper rights), with a link back if appropriate. Otherwise, we recommend original material, such as original commentary on the article. From the Terms of Use:

Users must make a good-faith effort to share content that is...not designed primarily for the purposes of promotion or creating backlinks. Additionally, posts must contain substantial content — they may not merely reference an external link that contains the full post.

Posts that are simply intended to encourage readers to view an external resource are discouraged.

Thank you.

Collapse
 
sahilthakur7 profile image
Sahil Thakur

Sure. Will take care of that next time.