DEV Community

loading...
Cover image for React page routes made easy!!

React page routes made easy!!

Hillary Chibuko
A frontend web developer Based in Africa,Nigeria
・1 min read
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

Discussion (0)