Ever wondered how to implement page routes in a complex react application?
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)