Refactor Your Router and Route Definitions into Separate Files

Share this video with your friends

Send Tweet

Main.js gets cluttered quickly with all of the routes we've defined. We can break out the router into a separate file, and further break out individual chunks of route records if we want.