This content originally appeared on DEV Community and was authored by hillary
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
This content originally appeared on DEV Community and was authored by hillary
hillary | Sciencx (2021-07-03T22:42:16+00:00) React page routes made easy!!. Retrieved from https://www.scien.cx/2021/07/03/react-page-routes-made-easy/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.