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

Latest comments (0)