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

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more