DEV Community

Cover image for React page routes made easy!!
Hillary Chibuko
Hillary Chibuko

Posted on

React page routes made easy!!

Ever wondered how to implement page routes in a complex react application?
Enter fullscreen mode Exit fullscreen mode

worry not cuz i ve'gat a solution for y'all

an npm package @dev_hills/easyroutes ,it makes routing between pages as easy as easy!!

npm i @dev_hills/easyroute and you are all set-up, it accepts a single prop which is basically an array of objects.

//[{path:"/about",component:"About"}]

you can as well pass in any number of objects to the array , thats all you need as property to get up and running with this cool package ..

check it out guys

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay